rspec-sonarqube-formatter 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -5
- data/.travis.yml +17 -5
- data/README.md +1 -69
- data/{rspec_sonarqube_formatter.gemspec → rspec-sonarqube-formatter.gemspec} +7 -4
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d03dc70a76120bbde342dc6f56331c72ae5248387f708e38536f9004e001bce0
|
4
|
+
data.tar.gz: 13d4cea8db2682c5bc4f5746d623d96e263ea1fb497be01f8cc74ecf5963d8f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2aca3efd4faf359b44f2cd72de0577aaf36e107e0225cb8b0ab1ad87b61a8662a2793d15abe5729a5e5166c62e6f6e98cd77e5da01cafe139e39422e2ff970
|
7
|
+
data.tar.gz: 49264403b0ba4672af8e300745d16a62c57dc97304fd6f2483d481104394dde1ba7e39fe09276f44ad1cadb1123a1d73789584a0b4148b5ffaba8958e5ea12ac
|
data/.gitignore
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
### macOS ###
|
2
|
-
|
3
|
-
# General
|
4
2
|
.DS_Store
|
5
3
|
.AppleDouble
|
6
4
|
.LSOverride
|
@@ -17,17 +15,16 @@
|
|
17
15
|
.VolumeIcon.icns
|
18
16
|
.com.apple.timemachine.donotpresent
|
19
17
|
|
18
|
+
|
20
19
|
### VisualStudioCode ###
|
21
20
|
.vscode/*
|
22
21
|
!.vscode/settings.json
|
23
22
|
!.vscode/tasks.json
|
24
23
|
!.vscode/launch.json
|
25
24
|
!.vscode/extensions.json
|
26
|
-
|
27
|
-
### VisualStudioCode Patch ###
|
28
|
-
# Ignore all local history of files
|
29
25
|
.history
|
30
26
|
|
27
|
+
|
31
28
|
### Application ###
|
32
29
|
.rspec_status
|
33
30
|
coverage
|
@@ -35,3 +32,6 @@ test-report.xml
|
|
35
32
|
.scannerwork
|
36
33
|
rubocop.json
|
37
34
|
.idea
|
35
|
+
*.gem
|
36
|
+
.bundle/
|
37
|
+
cc-test-reporter
|
data/.travis.yml
CHANGED
@@ -41,8 +41,20 @@ notifications:
|
|
41
41
|
secure: vPOzM6Sg5OQKgkzAnKOeSGFwpfslmSynoTJ1UiNa3b4qeZPHqabs+IGe54gtWEepC3YqlcIjZ8pLoKDYJP4xic75RILeeVs1Ya//5/0yiUshE/yKWvHDY7p6ozKo0LAgX9Ean9q5OvMDJXBImoBBmqKyfNOT/IVKMML2d/LwK2MJQuJmOjWQS++f8l4ZTbnoLC59uPP6MvaPf0QktspxTEP5sKjDd/5DDkzkBGueu8jFHzXjkjozrj6rRk1Jiexh9BsNJCFnz3/nurrg1NXCNlFk0BLCcop5VTKjuibSqO+U8x5DAon2nuFz7dVAi7vC8l9fL/pnYhb5x2e2XXt3VtisadG302ysVekFlDCzQ+zD4LudzBQDaOH8OQW+5+noK8qDXV0IAPeKZzT8Nb1/LkJMiNzVQiLHlOYThDGUj9+9qb6MsigzxFUjhTQN5XmarVy7p2xMO5pzNPXIPd2dEJVrabaFWoOL+Qog/Om8GBKmxsToJR8f6oVk8SDK3Q9cPjoZQoujyRiK3acTK+srT+J2nCnPwU0Sy/RRRbvmvIUDwNbJ8jkeYBs0y1aXk8SsMKRqzdrLNq/5YvyjzzMUGzrDdJAkqywwIV0ROLdsqBC+cIPAJoJF7s5b7kTM1EGy01IuLGxJ8EJ3UYOl1KXRzoAafBb6pWEL34Tu0OSMj3Q=
|
42
42
|
|
43
43
|
deploy:
|
44
|
-
provider: rubygems
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
- provider: rubygems
|
45
|
+
skip_cleanup: true
|
46
|
+
api_key:
|
47
|
+
secure: fThOZtHGWfz6JCETpxPtY5/Q/2JwuRMPdtnkUH+591p8ymLfCPW/1U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EZHYep2LDjdI5LVU3i8uIfY6MBhvRzATrka7Ho1HDKxTSSLuK7vUxERlb/uf19MYbcV9SniMRwspds2/r+W6YRwM9Yrk0sfo6ZVg3qXs7Ll3jbs7nUjBq8yVIIXLVgwQ7JgmnPgsMQ05PcSc1GZG5rJ+sgbapbTLhss3ygsXPpJg7Tfu3JzJ6zAHrPc/I3HWVvYV2mz7rqhKiXVHKEDN9yULDGIBKgrNZmvyinJhPQay1a1h/jLfX5hp0wSjUeiyZKmdKYOu/6a4myrq+GHaUwtGyWcAk1DzX0d1sMptSKKmj56vjAiLZtGawVazkMdYzMZ5szOCI2wz1ps2A+3h28TL8UOSGCjZgx3dyuXBY9QHweEAJqDy7FlFN8=
|
56
|
+
file: "*.gem"
|
57
|
+
skip_cleanup: true
|
58
|
+
on:
|
59
|
+
tags: true
|
60
|
+
rvm: 2.6
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Rspec formatter to generates an xml file for SonarQube, using the generec-test-d
|
|
11
11
|
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/otherguy/rspec-sonarqube-formatter)][codeclimate]
|
12
12
|
[![License](https://img.shields.io/github/license/otherguy/rspec-sonarqube-formatter)][license]
|
13
13
|
|
14
|
-
[rubygems]:
|
14
|
+
[rubygems]: https://rubygems.org/gems/rspec-sonarqube-formatter
|
15
15
|
[issues]: https://github.com/otherguy/rspec-sonarqube-formatter/issues
|
16
16
|
[travis]: https://travis-ci.com/otherguy/rspec-sonarqube-formatter
|
17
17
|
[coveralls]: https://coveralls.io/github/otherguy/rspec-sonarqube-formatter
|
@@ -28,71 +28,3 @@ bundle install
|
|
28
28
|
|
29
29
|
Tests:
|
30
30
|
bundle exec rake spec
|
31
|
-
|
32
|
-
|
33
|
-
## Installation
|
34
|
-
|
35
|
-
Add this line to your application's `Gemfile`:
|
36
|
-
|
37
|
-
```ruby
|
38
|
-
gem 'rspec_sonarqube_formatter'
|
39
|
-
```
|
40
|
-
|
41
|
-
And then execute:
|
42
|
-
|
43
|
-
$ bundle
|
44
|
-
|
45
|
-
Or install it yourself as:
|
46
|
-
|
47
|
-
$ gem install rspec_sonar_formatter
|
48
|
-
|
49
|
-
## Usage
|
50
|
-
|
51
|
-
Add the following in your spec/spec_helper.rb :
|
52
|
-
|
53
|
-
```ruby
|
54
|
-
RSpec.configure do |c|
|
55
|
-
c.formatter = 'documentation'
|
56
|
-
c.add_formatter('RSpec::RspecSonarFormatter::Formatter', 'junit/reports_sonar.xml')
|
57
|
-
...
|
58
|
-
end
|
59
|
-
```
|
60
|
-
|
61
|
-
and add the following option to the sonar-scanner configuration, after you have run your rspec tests:
|
62
|
-
|
63
|
-
```bash
|
64
|
-
testExecutionReportPaths=junit/reports_sonar.xml
|
65
|
-
```
|
66
|
-
|
67
|
-
If you are using a jenkins file, this can be done like:
|
68
|
-
|
69
|
-
```java
|
70
|
-
stage('SonarQube Analysis') {
|
71
|
-
steps {
|
72
|
-
withSonarQubeEnv('Sonarqube puppet 6.7.1 LTS') {
|
73
|
-
sh '''
|
74
|
-
/opt/sonar-scanner/bin/sonar-scanner \
|
75
|
-
--define "sonar.projectKey=puppet:${gitlabSourceRepoName}" \
|
76
|
-
--define "sonar.projectName=${gitlabSourceRepoName}" \
|
77
|
-
--define "sonar.projectVersion=${BUILD_ID}-${gitlabMergeRequestIid}" \
|
78
|
-
--define "sonar.exclusions=spec/fixtures/**/*" \
|
79
|
-
--define "sonar.testExecutionReportPaths=junit/reports_sonar.xml" \
|
80
|
-
--define "sonar.sources=."
|
81
|
-
'''
|
82
|
-
}
|
83
|
-
}
|
84
|
-
}
|
85
|
-
```
|
86
|
-
|
87
|
-
## Development
|
88
|
-
|
89
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake spec` to run the
|
90
|
-
tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
91
|
-
|
92
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
|
93
|
-
version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the
|
94
|
-
version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
95
|
-
|
96
|
-
## Contributing
|
97
|
-
|
98
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/witjoh/rspec_sonar_formatter.
|
@@ -5,10 +5,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'rspec-sonarqube-formatter'
|
8
|
-
spec.version = '0.0.1'
|
9
|
-
spec.version = "#{spec.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
10
|
-
spec.platform = Gem::Platform::RUBY
|
11
8
|
|
9
|
+
# rubocop:disable Gemspec/DuplicatedAssignment
|
10
|
+
spec.version = '1.0.0-pre'
|
11
|
+
spec.version = ENV.fetch('TRAVIS_TAG') { spec.version }.to_s if ENV['TRAVIS']
|
12
|
+
# rubocop:enable Gemspec/DuplicatedAssignment
|
13
|
+
|
14
|
+
spec.platform = Gem::Platform::RUBY
|
12
15
|
spec.authors = ['Alexander Graf']
|
13
16
|
spec.email = ['alex@otherguy.uo']
|
14
17
|
|
@@ -18,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
18
21
|
}
|
19
22
|
|
20
23
|
spec.summary = 'Generic test data formatter for SonarQube'
|
21
|
-
spec.description = 'Generates an report that the SonarQube Generic Test Data parser
|
24
|
+
spec.description = 'Generates an XML report that the SonarQube Generic Test Data parser can understand'
|
22
25
|
spec.homepage = 'https://github.com/otherguy/rspec-sonarqube-formatter'
|
23
26
|
spec.license = 'MIT'
|
24
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-sonarqube-formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Graf
|
@@ -108,7 +108,8 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.2.0
|
111
|
-
description: Generates an report that the SonarQube Generic Test Data parser
|
111
|
+
description: Generates an XML report that the SonarQube Generic Test Data parser can
|
112
|
+
understand
|
112
113
|
email:
|
113
114
|
- alex@otherguy.uo
|
114
115
|
executables: []
|
@@ -132,7 +133,7 @@ files:
|
|
132
133
|
- README.md
|
133
134
|
- Rakefile
|
134
135
|
- lib/rspec_sonarqube_formatter.rb
|
135
|
-
-
|
136
|
+
- rspec-sonarqube-formatter.gemspec
|
136
137
|
- sonar-project.properties
|
137
138
|
homepage: https://github.com/otherguy/rspec-sonarqube-formatter
|
138
139
|
licenses:
|
@@ -151,11 +152,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
152
|
version: '0'
|
152
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
154
|
requirements:
|
154
|
-
- - "
|
155
|
+
- - ">"
|
155
156
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
157
|
+
version: 1.3.1
|
157
158
|
requirements: []
|
158
|
-
|
159
|
+
rubyforge_project:
|
160
|
+
rubygems_version: 2.7.7
|
159
161
|
signing_key:
|
160
162
|
specification_version: 4
|
161
163
|
summary: Generic test data formatter for SonarQube
|