simplecov-teamcity-summary 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 64dc7db1c6bfa71548fa625dfa9e8f69444a2ddc
4
- data.tar.gz: 1282fe93959cc3f5f19cb80891aa2c53296a87ae
2
+ SHA256:
3
+ metadata.gz: 11ff7a3c1f60b5563e88c921eff38d2d82812f9cc56722f351039cbddbc2696b
4
+ data.tar.gz: 880d6d0e7ef4fc10a49a26de49365c9eeba78ebec16217bc060876ab2d8edc59
5
5
  SHA512:
6
- metadata.gz: 39ffd3595971fb32dd938ea19b91100c23d249b10469376f57303cf825036a368af2903ddff55d61a9305d4b305a55dd0452d5b71076ec75ad7bc1e97c2b3ca5
7
- data.tar.gz: f7507383e0390b7ea3800d0aa9d5d2f28df56276b239a8b96ea575c96ad64e82c91f192eaeed7f6220de4ad50ba2e88723ef4749219ddfa3b41cb8cda682fc5a
6
+ metadata.gz: 9fb88efedd3f5edc123ff0a1ed9f4544d89f5a0662d83f6c1506c9924b69f690cef6ab2a64f8ad3500840694a75e294040e63a3fdf198d114839593809b0c3f5
7
+ data.tar.gz: b8ceb6d23d765ede95adf78e75f39907ce26ff4be9dfa44aaf14d49c92864456625f7e9f0bf751def876878a5e67ccfba229c6e25c3a67261a38b41700aee47b
@@ -1,3 +1,10 @@
1
+ v0.1.3
2
+ ======
3
+
4
+ Bugfixes:
5
+
6
+ * [Removed CodeCoverageL, this is calculated by TeamCity](https://confluence.jetbrains.com/pages/viewpage.action?pageId=74845225#HowTo...-ImportcoverageresultsinTeamCity)
7
+
1
8
  v0.1.2
2
9
  ======
3
10
 
@@ -1,36 +1,39 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simplecov-teamcity-summary (0.1.2)
4
+ simplecov-teamcity-summary (0.1.3)
5
5
  simplecov
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- coderay (1.1.0)
11
- diff-lcs (1.2.5)
12
- docile (1.1.5)
13
- method_source (0.8.2)
14
- multi_json (1.11.0)
15
- pry (0.9.12.6)
16
- coderay (~> 1.0)
17
- method_source (~> 0.8)
18
- slop (~> 3.4)
19
- rake (10.1.1)
20
- rspec (2.14.1)
21
- rspec-core (~> 2.14.0)
22
- rspec-expectations (~> 2.14.0)
23
- rspec-mocks (~> 2.14.0)
24
- rspec-core (2.14.7)
25
- rspec-expectations (2.14.4)
26
- diff-lcs (>= 1.1.3, < 2.0)
27
- rspec-mocks (2.14.4)
28
- simplecov (0.9.2)
29
- docile (~> 1.1.0)
30
- multi_json (~> 1.0)
31
- simplecov-html (~> 0.9.0)
32
- simplecov-html (0.9.0)
33
- slop (3.4.7)
10
+ coderay (1.1.2)
11
+ diff-lcs (1.3)
12
+ docile (1.3.0)
13
+ json (2.1.0)
14
+ method_source (0.9.0)
15
+ pry (0.11.3)
16
+ coderay (~> 1.1.0)
17
+ method_source (~> 0.9.0)
18
+ rake (12.3.1)
19
+ rspec (3.7.0)
20
+ rspec-core (~> 3.7.0)
21
+ rspec-expectations (~> 3.7.0)
22
+ rspec-mocks (~> 3.7.0)
23
+ rspec-core (3.7.1)
24
+ rspec-support (~> 3.7.0)
25
+ rspec-expectations (3.7.0)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.7.0)
28
+ rspec-mocks (3.7.0)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.7.0)
31
+ rspec-support (3.7.1)
32
+ simplecov (0.16.1)
33
+ docile (~> 1.1)
34
+ json (>= 1.8, < 3)
35
+ simplecov-html (~> 0.10.0)
36
+ simplecov-html (0.10.2)
34
37
 
35
38
  PLATFORMS
36
39
  ruby
@@ -41,3 +44,6 @@ DEPENDENCIES
41
44
  rake
42
45
  rspec
43
46
  simplecov-teamcity-summary!
47
+
48
+ BUNDLED WITH
49
+ 1.16.1
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # SimpleCov::TeamcitySummary
2
2
 
3
- By default, Teamcity [does not pick up coverage information for Simplecov reports](http://confluence.jetbrains.com/display/TCD8/Code+Coverage). This gem provides you with a quick and easy way to add these statistics to your Teamcity instance.
3
+ [![Gem Version](https://badge.fury.io/rb/simplecov-teamcity-summary.svg)](http://badge.fury.io/rb/simplecov-teamcity-summary)
4
+
5
+ By default, Teamcity [does not pick up coverage information for SimpleCov reports](https://confluence.jetbrains.com/display/TCD9/Code+Coveragee). This gem provides you with a quick and easy way to add these statistics to your Teamcity instance.
4
6
 
5
7
  Per build:
6
8
 
@@ -31,25 +33,31 @@ With these statistics, you can trigger a build fail if coverage drops below a ce
31
33
 
32
34
  ## Configuration
33
35
 
34
- ### When starting Simplecov
36
+ ### When starting SimpleCov
35
37
 
36
38
  ```ruby
37
39
  require 'simplecov'
38
40
  SimpleCov.start do
39
- at_exit do
40
- SimpleCov::Formatter::TeamcitySummaryFormatter.new.format(SimpleCov.result) if ENV['TEAMCITY_VERSION']
41
+ if ENV['TEAMCITY_VERSION']
42
+ at_exit do
43
+ SimpleCov::Formatter::TeamcitySummaryFormatter.new.format(SimpleCov.result)
44
+ # SimpleCov.result.format! # uncomment for additional detailed HTML report for TeamCity artifacts
45
+ end
41
46
  end
42
47
  end
43
48
  ```
44
49
 
45
- ### Using a Simplecov profile
50
+ ### Using a SimpleCov profile
46
51
 
47
52
  Create or edit a .simplecov file and include:
48
53
 
49
54
  ```ruby
50
55
  SimpleCov.profiles.define 'teamcity' do
51
- at_exit do
52
- SimpleCov::Formatter::TeamcitySummaryFormatter.new.format(SimpleCov.result) if ENV['TEAMCITY_VERSION']
56
+ if ENV['TEAMCITY_VERSION']
57
+ at_exit do
58
+ SimpleCov::Formatter::TeamcitySummaryFormatter.new.format(SimpleCov.result)
59
+ # SimpleCov.result.format! # uncomment for additional detailed HTML report for TeamCity artifacts
60
+ end
53
61
  end
54
62
  end
55
63
  ```
@@ -63,13 +71,10 @@ Then, start your SimpleCov instance like this:
63
71
 
64
72
  ## License
65
73
 
66
- Copyright (C) 2015 Ben Cochez
74
+ Copyright (C) 2014-2015 Ben Cochez
67
75
 
68
76
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
69
77
 
70
78
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
71
79
 
72
80
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
73
-
74
- [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/benc/simplecov-teamcity-summary/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
75
-
@@ -15,7 +15,6 @@ module SimpleCov::Formatter
15
15
  <<-eos
16
16
 
17
17
  ##teamcity[blockOpened name='Code Coverage Summary']
18
- ##teamcity[buildStatisticValue key='CodeCoverageL' value='#{simplecov_results.covered_percent}']
19
18
  ##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='#{simplecov_results.covered_lines}']
20
19
  ##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='#{simplecov_results.total_lines}']
21
20
  ##teamcity[blockClosed name='Code Coverage Summary']
@@ -1,5 +1,5 @@
1
1
  module SimpleCov
2
2
  module TeamcitySummary
3
- VERSION="0.1.2"
3
+ VERSION="1.0.0"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.name = "simplecov-teamcity-summary"
8
8
  gem.version = SimpleCov::TeamcitySummary::VERSION
9
9
  gem.authors = ["Ben Cochez"]
10
- gem.email = ["ben@cochezconsult.be"]
10
+ gem.email = ["ben@cochez.consulting"]
11
11
  gem.description = "Simplecov formatter that prints coverage summary information to display in TeamCity."
12
12
  gem.summary = gem.description
13
13
  gem.homepage = "https://github.com/benc/simplecov-teamcity-summary"
@@ -13,7 +13,6 @@ describe SimpleCov::Formatter::TeamcitySummaryFormatter do
13
13
  describe "#format_teamcity" do
14
14
  let(:simplecov_result) { OpenStruct.new({covered_percent: '12.34567', covered_lines: '1234', total_lines: '5678' })}
15
15
  let(:open_block) { "##teamcity[blockOpened name='Code Coverage Summary']" }
16
- let(:coverage_percent) { "##teamcity[buildStatisticValue key='CodeCoverageL' value='12.34567']" }
17
16
  let(:covered_lines) { "##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='1234']" }
18
17
  let(:total_lines) { "##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='5678']" }
19
18
  let(:close_block) { "##teamcity[blockClosed name='Code Coverage Summary']" }
@@ -21,7 +20,6 @@ describe SimpleCov::Formatter::TeamcitySummaryFormatter do
21
20
  subject { described_class.new.format_teamcity(simplecov_result) }
22
21
 
23
22
  it { expect(subject).to include(open_block) }
24
- it { expect(subject).to include(coverage_percent) }
25
23
  it { expect(subject).to include(covered_lines) }
26
24
  it { expect(subject).to include(total_lines) }
27
25
  it { expect(subject).to include(close_block) }
@@ -8,6 +8,5 @@ support_path = File.expand_path("spec/support")
8
8
  Dir["#{support_path}/**/*.rb"].each { |f| require f }
9
9
 
10
10
  RSpec.configure do |config|
11
- config.color_enabled = true
12
11
  config.tty = true
13
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-teamcity-summary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Cochez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2018-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,7 +83,7 @@ dependencies:
83
83
  description: Simplecov formatter that prints coverage summary information to display
84
84
  in TeamCity.
85
85
  email:
86
- - ben@cochezconsult.be
86
+ - ben@cochez.consulting
87
87
  executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.4.6
128
+ rubygems_version: 2.7.3
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Simplecov formatter that prints coverage summary information to display in