danger-junit 0.7.1 → 0.7.2

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
2
  SHA1:
3
- metadata.gz: 070ac5947388c5a92ae5a02db8df8dfd2560ae1d
4
- data.tar.gz: a55896e6350aa839e04b0d20f7903b7cb2fe34a4
3
+ metadata.gz: 58c923a604963a4621a2ba5bd2034933df54b684
4
+ data.tar.gz: eddcbb189a7161a39db64ea1ee95d6c3a4303229
5
5
  SHA512:
6
- metadata.gz: 2c1d6ab9ca7edf89907da3a4f1c2f3aa4b1418da5e4f54c3769c5a4b5e49802de25b1fa322f142d29a7663496b979066b3c8efcb583cf92d4b06884d1200377e
7
- data.tar.gz: a9d939e384a611ad3406169ae254abd9c41b20521716b0e8aa973f5b8bd8a478f447ba8e013090a9ff013d0eb9c190e9059456403cb004c1c77268ad6e06b9e8
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.fails.empty?</pre>
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 attribues.
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,
@@ -1,3 +1,3 @@
1
1
  module Junit
2
- VERSION = '0.7.1'.freeze
2
+ VERSION = '0.7.2'.freeze
3
3
  end
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.fails.empty?
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.1
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: 2016-08-21 00:00:00.000000000 Z
11
+ date: 2017-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger