rspec-sonarqube-formatter 0.0.1.pre.alpha.pre.36 → 0.0.1
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 +5 -17
- data/Gemfile.lock +1 -1
- data/README.md +69 -1
- data/{rspec-sonarqube-formatter.gemspec → rspec_sonarqube_formatter.gemspec} +2 -5
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a060c9e4535a6929c2ed5f6c6a7ba8f46095fc61f6d93f7a98a60994453ee9
|
4
|
+
data.tar.gz: f14b4ac1ac39937faf3348639813461ae62de251754f95c943a357fe200812ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34bbb74c49907fdc8a79391a868acc6f2368ab764e9cdd9a00e0b5a1aa0a12a5758a05fc8d69568878c1d2f82026911f96bd8338908363941f0936d80908f848
|
7
|
+
data.tar.gz: 95cf9508b6f2a375101cfdeac8da981896c21ddaea72d0711c58d8fdf73407baaccb35c2ace0ed3df1b713538cc4061107080ed101cfa575d74a0022daafb7d7
|
data/.gitignore
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
### macOS ###
|
2
|
+
|
3
|
+
# General
|
2
4
|
.DS_Store
|
3
5
|
.AppleDouble
|
4
6
|
.LSOverride
|
@@ -15,15 +17,16 @@
|
|
15
17
|
.VolumeIcon.icns
|
16
18
|
.com.apple.timemachine.donotpresent
|
17
19
|
|
18
|
-
|
19
20
|
### VisualStudioCode ###
|
20
21
|
.vscode/*
|
21
22
|
!.vscode/settings.json
|
22
23
|
!.vscode/tasks.json
|
23
24
|
!.vscode/launch.json
|
24
25
|
!.vscode/extensions.json
|
25
|
-
.history
|
26
26
|
|
27
|
+
### VisualStudioCode Patch ###
|
28
|
+
# Ignore all local history of files
|
29
|
+
.history
|
27
30
|
|
28
31
|
### Application ###
|
29
32
|
.rspec_status
|
@@ -32,6 +35,3 @@ test-report.xml
|
|
32
35
|
.scannerwork
|
33
36
|
rubocop.json
|
34
37
|
.idea
|
35
|
-
*.gem
|
36
|
-
.bundle/
|
37
|
-
cc-test-reporter
|
data/.travis.yml
CHANGED
@@ -41,20 +41,8 @@ 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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
on:
|
50
|
-
tags: true
|
51
|
-
rvm: 2.6
|
52
|
-
- provider: releases
|
53
|
-
file_glob: true
|
54
|
-
api_key:
|
55
|
-
secure: Qfkej2Tk4iyZS/yzL+g1TMHi+K+8TSCUtYENW3w9daR+0iejicwVHTT01wQT77zUaJ+n5i5B6lXfYIjqA7MivBHf27qJy+6cf4iFZB0kU7KGNv9bXZlXW9T5GZQ8jx1QsIefdqNqmu7Eqjuq9EhrhqrR3dfAeaBXdMX2HiIOEYzhjckJBtGrwPB96SNGTbSnVwwHa8+aHe58DrAvuh6WYBGu8NLJYKpyj8LY7iOBpm15+nx0Lkofj8p0jtUWXCFMOEoWJICY7+Rzqf9badTQJVvcIyJsr9I5GsOkrzrW07DrCsDC1EZHYep2LDjdI5LVU3i8uIfY6MBhvRzATrka7Ho1HDKxTSSLuK7vUxERlb/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
|
44
|
+
provider: rubygems
|
45
|
+
api_key: "6146a2575bc6372332977cea56de7094"
|
46
|
+
on:
|
47
|
+
tags: true
|
48
|
+
gemspec: my-gemspec.gemspec
|
data/Gemfile.lock
CHANGED
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]: xxx
|
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,3 +28,71 @@ 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,13 +5,10 @@ $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
|
-
|
9
|
-
# rubocop:disable Gemspec/DuplicatedAssignment
|
10
8
|
spec.version = '0.0.1'
|
11
9
|
spec.version = "#{spec.version}-alpha-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
|
12
|
-
# rubocop:enable Gemspec/DuplicatedAssignment
|
13
|
-
|
14
10
|
spec.platform = Gem::Platform::RUBY
|
11
|
+
|
15
12
|
spec.authors = ['Alexander Graf']
|
16
13
|
spec.email = ['alex@otherguy.uo']
|
17
14
|
|
@@ -21,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
21
18
|
}
|
22
19
|
|
23
20
|
spec.summary = 'Generic test data formatter for SonarQube'
|
24
|
-
spec.description = 'Generates an
|
21
|
+
spec.description = 'Generates an report that the SonarQube Generic Test Data parser understands'
|
25
22
|
spec.homepage = 'https://github.com/otherguy/rspec-sonarqube-formatter'
|
26
23
|
spec.license = 'MIT'
|
27
24
|
|
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.1
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Graf
|
@@ -108,8 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.2.0
|
111
|
-
description: Generates an
|
112
|
-
understand
|
111
|
+
description: Generates an report that the SonarQube Generic Test Data parser understands
|
113
112
|
email:
|
114
113
|
- alex@otherguy.uo
|
115
114
|
executables: []
|
@@ -133,7 +132,7 @@ files:
|
|
133
132
|
- README.md
|
134
133
|
- Rakefile
|
135
134
|
- lib/rspec_sonarqube_formatter.rb
|
136
|
-
-
|
135
|
+
- rspec_sonarqube_formatter.gemspec
|
137
136
|
- sonar-project.properties
|
138
137
|
homepage: https://github.com/otherguy/rspec-sonarqube-formatter
|
139
138
|
licenses:
|
@@ -152,12 +151,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
151
|
version: '0'
|
153
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
153
|
requirements:
|
155
|
-
- - "
|
154
|
+
- - ">="
|
156
155
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
156
|
+
version: '0'
|
158
157
|
requirements: []
|
159
|
-
|
160
|
-
rubygems_version: 2.7.7
|
158
|
+
rubygems_version: 3.0.3
|
161
159
|
signing_key:
|
162
160
|
specification_version: 4
|
163
161
|
summary: Generic test data formatter for SonarQube
|