danger-kover 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -1
- data/danger-kover-0.0.1.gem +0 -0
- data/danger-kover-0.0.2.gem +0 -0
- data/lib/kover/gem_version.rb +1 -1
- data/lib/kover/plugin.rb +5 -5
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb8421deaaee07d3de9b03a92feff5b4214781fecf0d939e353af609323b280
|
4
|
+
data.tar.gz: 6e88342df62df29ea4127b038019daa12b82710a56d696534b69cde2e2ebd794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b67f4cdff93b1671aa2cff55e1e7106e049407fe3b64a87b7cfedce29105ab21335e57d4d41c9df2f964eada48dc8aeb5e622b7b1fc36d6218d77a0acb3b999c
|
7
|
+
data.tar.gz: 739c45b3591cd6e4f9a17e0981d69c9e7de485002078ccc17e01de79b0bad036e1bf2017f77d62cf1b8a4dc2aed4afc4e673f9485b5006d35ecba646cff3410c
|
data/README.md
CHANGED
@@ -40,9 +40,13 @@ kover.report 'Module Name', 'path/to/kover/report.xml'
|
|
40
40
|
Optional attribute to only warn instead of failing if below thresholds:
|
41
41
|
|
42
42
|
```ruby
|
43
|
-
kover.fail_if_under_threshold false
|
43
|
+
kover.fail_if_under_threshold = false
|
44
44
|
```
|
45
45
|
|
46
|
+
## Credits
|
47
|
+
|
48
|
+
This is a fork, based on [Shroud](https://github.com/livefront/danger-shroud).
|
49
|
+
|
46
50
|
## Development
|
47
51
|
|
48
52
|
1. Clone this repo
|
@@ -50,3 +54,17 @@ kover.fail_if_under_threshold false
|
|
50
54
|
3. Run `bundle exec rake spec` to run the tests.
|
51
55
|
4. Use `bundle exec guard` to automatically have tests run as you make changes.
|
52
56
|
5. Make your changes.
|
57
|
+
|
58
|
+
## Publishing
|
59
|
+
|
60
|
+
How to build a gem (make sure to update the version):
|
61
|
+
|
62
|
+
```
|
63
|
+
gem build danger-kover.gemspec
|
64
|
+
```
|
65
|
+
|
66
|
+
How to publish a gem:
|
67
|
+
|
68
|
+
```
|
69
|
+
gem push danger-kover-VERSION.gem
|
70
|
+
```
|
Binary file
|
Binary file
|
data/lib/kover/gem_version.rb
CHANGED
data/lib/kover/plugin.rb
CHANGED
@@ -115,7 +115,7 @@ module Danger
|
|
115
115
|
output = "## 🎯 #{moduleName} Code Coverage: **`#{'%.2f' % coveragePercent}%`**\n"
|
116
116
|
|
117
117
|
if touchedFilesHash.empty?
|
118
|
-
output << "The new and modified files are not part of the coverage report
|
118
|
+
output << "The new and modified files are not part of the Kover coverage report 👀.\n"
|
119
119
|
else
|
120
120
|
output << "### Coverage of Modified Files:\n"
|
121
121
|
output << "File | Coverage\n"
|
@@ -138,15 +138,15 @@ module Danger
|
|
138
138
|
end
|
139
139
|
|
140
140
|
output << "\n"
|
141
|
-
output << "Number of files not found in coverage report: #{fileNamesNotInReport.size}"
|
142
|
-
output << "\n"
|
141
|
+
output << "Number of files not found in coverage report: #{fileNamesNotInReport.size}."
|
142
|
+
output << "\n\n"
|
143
143
|
|
144
|
-
output << 'Code coverage
|
144
|
+
output << 'Code coverage by [danger-kover](https://github.com/JCarlosR/danger-kover).'
|
145
145
|
markdown output
|
146
146
|
|
147
147
|
# warn or fail if total coverage is under specified threshold
|
148
148
|
if (coveragePercent < total_threshold)
|
149
|
-
totalCoverageWarning = "Oops! The
|
149
|
+
totalCoverageWarning = "Oops! The module #{moduleName} codebase is under #{total_threshold}% coverage."
|
150
150
|
|
151
151
|
if (fail_if_under_threshold)
|
152
152
|
fail totalCoverageWarning
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-kover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrewhaisting
|
@@ -182,6 +182,8 @@ files:
|
|
182
182
|
- LICENSE
|
183
183
|
- README.md
|
184
184
|
- Rakefile
|
185
|
+
- danger-kover-0.0.1.gem
|
186
|
+
- danger-kover-0.0.2.gem
|
185
187
|
- danger-kover.gemspec
|
186
188
|
- images/bannerImage.png
|
187
189
|
- lib/danger_plugin.rb
|