danger-junit 0.7.1 → 0.7.2
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 +5 -5
- data/lib/junit/gem_version.rb +1 -1
- data/lib/junit/plugin.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58c923a604963a4621a2ba5bd2034933df54b684
|
4
|
+
data.tar.gz: eddcbb189a7161a39db64ea1ee95d6c3a4303229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89f9ba58e802a44f84c1e0a5a0002ebd19d1982b09ea2c29d23a713f96016de2f227efe069dfa91a55a0fd465f2ceffad94ded81c8d757b729dcadbcb972af71
|
7
|
+
data.tar.gz: bb4a172c51a0277c9be1da381faba9e3ffbf7bf61afd8eb574f42db9787133b02ac2703099f4bcaca42dd53523a428475f7b38b31294dcbbb5707ad9ba01b75d
|
data/README.md
CHANGED
@@ -43,7 +43,7 @@ You have a lot of options:
|
|
43
43
|
|
44
44
|
* [trainer](https://github.com/krausefx/trainer) is the fastest way to generate the junit file.
|
45
45
|
* [xcpretty](https://github.com/supermarin/xcpretty#reporters) is used in both [fastlane](https://fastlane.tools), and a lot of standard setups.
|
46
|
-
* [xctool](https://github.com/facebook/xctool#included-reporters) includes it's own reporter for creating the file.
|
46
|
+
* [xctool](https://github.com/facebook/xctool#included-reporters) includes it's own reporter for creating the file.
|
47
47
|
|
48
48
|
### JUnit
|
49
49
|
|
@@ -53,7 +53,7 @@ Testing frameworks have standardized on the JUnit XML format for
|
|
53
53
|
reporting results, this means that projects using Rspec, Jasmine, Mocha,
|
54
54
|
XCTest and more - can all use the same Danger error reporting. Perfect.
|
55
55
|
|
56
|
-
You can see some examples on [this page from Circle CI](https://circleci.com/docs/test-metadata/)
|
56
|
+
You can see some examples on [this page from Circle CI](https://circleci.com/docs/test-metadata/) and on this [project's README](https://github.com/orta/danger-junit.git)
|
57
57
|
about how you can add JUnit XML output for your testing projects.
|
58
58
|
|
59
59
|
<blockquote>Parse the XML file, and let the plugin do your reporting
|
@@ -65,7 +65,7 @@ junit.report</pre>
|
|
65
65
|
<blockquote>Let the plugin parse the XML file, and report yourself
|
66
66
|
<pre>
|
67
67
|
junit.parse "/path/to/output.xml"
|
68
|
-
fail("Tests failed") unless junit.
|
68
|
+
fail("Tests failed") unless junit.failures.empty?</pre>
|
69
69
|
</blockquote>
|
70
70
|
|
71
71
|
<blockquote>Warn on a report about skipped tests
|
@@ -107,13 +107,13 @@ message "#{slowest_test[:time]} took #{slowest_test[:time]} seconds"</pre>
|
|
107
107
|
`show_skipped_tests` - An attribute to make the plugin show a warning on skipped tests.
|
108
108
|
|
109
109
|
`headers` - An array of symbols that become the columns of your tests,
|
110
|
-
if `nil`, the default, it will be all of the
|
110
|
+
if `nil`, the default, it will be all of the attributes.
|
111
111
|
|
112
112
|
|
113
113
|
|
114
114
|
#### Methods
|
115
115
|
|
116
|
-
`parse` - Parses an XML file, which fills all the attributes
|
116
|
+
`parse` - Parses an XML file, which fills all the attributes,
|
117
117
|
will `raise` for errors
|
118
118
|
|
119
119
|
`report` - Causes a build fail if there are test failures,
|
data/lib/junit/gem_version.rb
CHANGED
data/lib/junit/plugin.rb
CHANGED
@@ -17,7 +17,7 @@ module Danger
|
|
17
17
|
# @example Let the plugin parse the XML file, and report yourself
|
18
18
|
#
|
19
19
|
# junit.parse "/path/to/output.xml"
|
20
|
-
# fail("Tests failed") unless junit.
|
20
|
+
# fail("Tests failed") unless junit.failures.empty?
|
21
21
|
#
|
22
22
|
# @example Warn on a report about skipped tests
|
23
23
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-junit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orta Therox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger
|