junit_report_generator 1.0.3 → 1.0.5

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: 5d1067e7e8e1969c72fdd19d5bfd8a9fae37cce7
4
- data.tar.gz: df517fe692a68b47be3df2c0dea72c2c83d49386
3
+ metadata.gz: a7069618d239696185db56046b26f8f3d479d9cb
4
+ data.tar.gz: ed5429f60f705a337651579cc0a2f0aff60220a2
5
5
  SHA512:
6
- metadata.gz: c61f1b5adc252bd5fead1a784eeca8c31cb13d4b212e074b128f2291eecafca1c170d9e6ad06d08a68737c404a06c2f46f5691d58993c7293777f500c2e7a16f
7
- data.tar.gz: a586e1deae31e859c39332407689f0d91ab5feb4009ed9fe542d0d6b525ef934956006ff5226a41c04cde718dcc64febeee9ae19d5253a08e5220012ef070a62
6
+ metadata.gz: 9a9278bc43c82e95d48edc51c08c582eb2c42f6b44798242f563684bfb1e3f3112807341ef58bd34e822e2f04de2cb72bbf80516b243f7d98e6f45b16107b4a7
7
+ data.tar.gz: b51893fbc839d432a47bfa194f1663336bb86c5263d8a75f2567ebc65db3e278814ec6cb1743493531db2ab8f4365eaa00492c2b22017a8a30a4e858bc1f61cf
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  Gemfile.lock
2
2
  *.gem
3
3
  coverage/
4
+ *.xml
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.0
4
- - 2.2.0
3
+ - 2.3.0
5
4
  - ruby-head
6
5
  env:
7
6
  - CODECLIMATE_REPO_TOKEN="3124e4d5ad973c852dccbc34eb6bd3eb93ca3ab83f1cdcf1b6a56350c8388450"
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'nokogiri', '~> 1.8.4'
3
+ gem 'nokogiri', '~> 1.10.4'
4
4
 
5
5
  group :test do
6
- gem 'rake', '~> 12.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  gem 'minitest', '~> 5.11.3'
8
- gem 'coveralls', '~> 0.8.22'
8
+ gem 'coveralls', '~> 0.8.23'
9
9
  gem 'codeclimate-test-reporter', '~> 1.0.7'
10
10
  end
data/README.md CHANGED
@@ -8,6 +8,7 @@
8
8
  Easy and flexible solution to generating JUnit test result report from any format of data.
9
9
 
10
10
  ## Usage
11
+
11
12
  Install the library
12
13
  ```shell
13
14
  gem install junit_report_generator
@@ -41,6 +42,7 @@ Report.on(test_suites).publish('[path_of_output_xml_test_results]')
41
42
  ```
42
43
 
43
44
  ## Syntax
45
+
44
46
  * Add sub-elements to test case / suite(s)
45
47
  ```ruby
46
48
  TestCase.create('test').add(sub_element_1, sub_element_2).add(sub_element_3)
@@ -58,21 +60,20 @@ TestCase.create('test').add(Skipped.create) # Skipped
58
60
  ```
59
61
 
60
62
  ## Utilization
63
+
61
64
  Jenkins -> Job -> Configure -> Post-build Actions -> Add post-build action -> Publish JUnit test result report -> Test report XMLs
62
65
 
63
66
  ## Notes
67
+
64
68
  The statistics attributes in testsuite(s) are not really used by Jenkins (they are optional), in fact, Jenkins is doing the math by itself via counting the numbers from each testcase.
65
69
  ```xml
66
70
  <!-- these attributes are optional -->
67
71
  <testsuite name="foobar" tests="10" errors="3" failures="2" skipped="1" time="12.34">
68
72
  ```
69
73
 
70
- ## Reference
71
- [JUnit test reports specification](https://svn.jenkins-ci.org/trunk/hudson/dtkit/dtkit-format/dtkit-junit-model/src/main/resources/com/thalesgroup/dtkit/junit/model/xsd/)
72
-
73
74
  ## License
74
75
 
75
- Copyright (c) 2015-2017 Jing Li
76
+ Copyright (c) 2015-2019 Jing Li
76
77
 
77
78
  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:
78
79
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'junit_report_generator'
5
- s.version = '1.0.3'
5
+ s.version = '1.0.5'
6
6
  s.license = 'MIT'
7
- s.date = '2018-09-23'
7
+ s.date = '2019-09-22'
8
8
  s.summary = 'Generating JUnit test report easily from any source.'
9
9
  s.description = 'Generating JUnit test result report (xml) from any format of data by super easy and flexible syntax. Most of the CIs (Continuous Integration) can aggregate JUnit style reports with zero effort.'
10
10
  s.authors = ['Jing Li']
@@ -12,10 +12,10 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
14
  s.homepage = 'https://github.com/thyrlian/JunitReportGenerator'
15
- s.required_ruby_version = '~> 2.1'
16
- s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.4'
15
+ s.required_ruby_version = '~> 2.3'
16
+ s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.10.4'
17
17
  s.add_development_dependency 'rake', '~> 12.0'
18
18
  s.add_development_dependency 'minitest', '~> 5.11', '>= 5.11.3'
19
- s.add_development_dependency 'coveralls', '~> 0.8.22'
19
+ s.add_development_dependency 'coveralls', '~> 0.8.23'
20
20
  s.add_development_dependency 'codeclimate-test-reporter', '~> 1.0', '>= 1.0.7'
21
21
  end
@@ -0,0 +1,104 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ /*******************************************************************************
4
+ * Copyright (c) 2010 Thales Corporate Services SAS *
5
+ * Author : Gregory Boissinot *
6
+ * *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy *
8
+ * of this software and associated documentation files (the "Software"), to deal*
9
+ * in the Software without restriction, including without limitation the rights *
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
11
+ * copies of the Software, and to permit persons to whom the Software is *
12
+ * furnished to do so, subject to the following conditions: *
13
+ * *
14
+ * The above copyright notice and this permission notice shall be included in *
15
+ * all copies or substantial portions of the Software. *
16
+ * *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,*
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
23
+ * THE SOFTWARE. *
24
+ *******************************************************************************/
25
+ -->
26
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
27
+
28
+ <xs:element name="failure">
29
+ <xs:complexType mixed="true">
30
+ <xs:attribute name="type" type="xs:string" use="optional"/>
31
+ <xs:attribute name="message" type="xs:string" use="optional"/>
32
+ </xs:complexType>
33
+ </xs:element>
34
+
35
+ <xs:element name="error">
36
+ <xs:complexType mixed="true">
37
+ <xs:attribute name="type" type="xs:string" use="optional"/>
38
+ <xs:attribute name="message" type="xs:string" use="optional"/>
39
+ </xs:complexType>
40
+ </xs:element>
41
+
42
+ <xs:element name="properties">
43
+ <xs:complexType>
44
+ <xs:sequence>
45
+ <xs:element ref="property" maxOccurs="unbounded"/>
46
+ </xs:sequence>
47
+ </xs:complexType>
48
+ </xs:element>
49
+
50
+ <xs:element name="property">
51
+ <xs:complexType>
52
+ <xs:attribute name="name" type="xs:string" use="required"/>
53
+ <xs:attribute name="value" type="xs:string" use="required"/>
54
+ </xs:complexType>
55
+ </xs:element>
56
+
57
+ <xs:element name="system-err" type="xs:string"/>
58
+ <xs:element name="system-out" type="xs:string"/>
59
+
60
+ <xs:element name="testcase">
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
64
+ <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
65
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
66
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
67
+ </xs:sequence>
68
+ <xs:attribute name="name" type="xs:string" use="required"/>
69
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
70
+ <xs:attribute name="time" type="xs:string" use="optional"/>
71
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
72
+ </xs:complexType>
73
+ </xs:element>
74
+
75
+ <xs:element name="testsuite">
76
+ <xs:complexType>
77
+ <xs:sequence>
78
+ <xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
79
+ <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/>
80
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/>
81
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/>
82
+ </xs:sequence>
83
+ <xs:attribute name="name" type="xs:string" use="required"/>
84
+ <xs:attribute name="tests" type="xs:string" use="required"/>
85
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
86
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
87
+ <xs:attribute name="time" type="xs:string" use="optional"/>
88
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
89
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
90
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
91
+ <xs:attribute name="id" type="xs:string" use="optional"/>
92
+ <xs:attribute name="package" type="xs:string" use="optional"/>
93
+ </xs:complexType>
94
+ </xs:element>
95
+
96
+ <xs:element name="testsuites">
97
+ <xs:complexType>
98
+ <xs:sequence>
99
+ <xs:element ref="testsuite" maxOccurs="unbounded"/>
100
+ </xs:sequence>
101
+ </xs:complexType>
102
+ </xs:element>
103
+
104
+ </xs:schema>
@@ -0,0 +1,104 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ /*******************************************************************************
4
+ * Copyright (c) 2010 Thales Corporate Services SAS *
5
+ * Author : Gregory Boissinot *
6
+ * *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy *
8
+ * of this software and associated documentation files (the "Software"), to deal*
9
+ * in the Software without restriction, including without limitation the rights *
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
11
+ * copies of the Software, and to permit persons to whom the Software is *
12
+ * furnished to do so, subject to the following conditions: *
13
+ * *
14
+ * The above copyright notice and this permission notice shall be included in *
15
+ * all copies or substantial portions of the Software. *
16
+ * *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,*
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
23
+ * THE SOFTWARE. *
24
+ *******************************************************************************/
25
+ -->
26
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
27
+
28
+ <xs:element name="failure">
29
+ <xs:complexType mixed="true">
30
+ <xs:attribute name="type" type="xs:string" use="optional"/>
31
+ <xs:attribute name="message" type="xs:string" use="optional"/>
32
+ </xs:complexType>
33
+ </xs:element>
34
+
35
+ <xs:element name="error">
36
+ <xs:complexType mixed="true">
37
+ <xs:attribute name="type" type="xs:string" use="optional"/>
38
+ <xs:attribute name="message" type="xs:string" use="optional"/>
39
+ </xs:complexType>
40
+ </xs:element>
41
+
42
+ <xs:element name="properties">
43
+ <xs:complexType>
44
+ <xs:sequence>
45
+ <xs:element ref="property" maxOccurs="unbounded"/>
46
+ </xs:sequence>
47
+ </xs:complexType>
48
+ </xs:element>
49
+
50
+ <xs:element name="property">
51
+ <xs:complexType>
52
+ <xs:attribute name="name" type="xs:string" use="required"/>
53
+ <xs:attribute name="value" type="xs:string" use="required"/>
54
+ </xs:complexType>
55
+ </xs:element>
56
+
57
+ <xs:element name="system-err" type="xs:string"/>
58
+ <xs:element name="system-out" type="xs:string"/>
59
+
60
+ <xs:element name="testcase">
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
64
+ <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
65
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
66
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
67
+ </xs:sequence>
68
+ <xs:attribute name="name" type="xs:string" use="required"/>
69
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
70
+ <xs:attribute name="time" type="xs:string" use="optional"/>
71
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
72
+ </xs:complexType>
73
+ </xs:element>
74
+
75
+ <xs:element name="testsuite">
76
+ <xs:complexType>
77
+ <xs:sequence>
78
+ <xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
79
+ <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/>
80
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/>
81
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/>
82
+ </xs:sequence>
83
+ <xs:attribute name="name" type="xs:string" use="required"/>
84
+ <xs:attribute name="tests" type="xs:string" use="required"/>
85
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
86
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
87
+ <xs:attribute name="time" type="xs:string" use="optional"/>
88
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
89
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
90
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
91
+ <xs:attribute name="id" type="xs:string" use="optional"/>
92
+ <xs:attribute name="package" type="xs:string" use="optional"/>
93
+ </xs:complexType>
94
+ </xs:element>
95
+
96
+ <xs:element name="testsuites">
97
+ <xs:complexType>
98
+ <xs:sequence>
99
+ <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/>
100
+ </xs:sequence>
101
+ </xs:complexType>
102
+ </xs:element>
103
+
104
+ </xs:schema>
@@ -0,0 +1,113 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <!--
3
+ /*******************************************************************************
4
+ * Copyright (c) 2011 Thales Corporate Services SAS *
5
+ * Author : Gregory Boissinot *
6
+ * *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy *
8
+ * of this software and associated documentation files (the "Software"), to deal*
9
+ * in the Software without restriction, including without limitation the rights *
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
11
+ * copies of the Software, and to permit persons to whom the Software is *
12
+ * furnished to do so, subject to the following conditions: *
13
+ * *
14
+ * The above copyright notice and this permission notice shall be included in *
15
+ * all copies or substantial portions of the Software. *
16
+ * *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,*
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
23
+ * THE SOFTWARE. *
24
+ *******************************************************************************/
25
+ -->
26
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
27
+
28
+ <xs:element name="failure">
29
+ <xs:complexType mixed="true">
30
+ <xs:attribute name="type" type="xs:string" use="optional"/>
31
+ <xs:attribute name="message" type="xs:string" use="optional"/>
32
+ </xs:complexType>
33
+ </xs:element>
34
+
35
+ <xs:element name="error">
36
+ <xs:complexType mixed="true">
37
+ <xs:attribute name="type" type="xs:string" use="optional"/>
38
+ <xs:attribute name="message" type="xs:string" use="optional"/>
39
+ </xs:complexType>
40
+ </xs:element>
41
+
42
+ <xs:element name="properties">
43
+ <xs:complexType>
44
+ <xs:sequence>
45
+ <xs:element ref="property" maxOccurs="unbounded"/>
46
+ </xs:sequence>
47
+ </xs:complexType>
48
+ </xs:element>
49
+
50
+ <xs:element name="property">
51
+ <xs:complexType>
52
+ <xs:attribute name="name" type="xs:string" use="required"/>
53
+ <xs:attribute name="value" type="xs:string" use="required"/>
54
+ </xs:complexType>
55
+ </xs:element>
56
+
57
+ <xs:element name="system-err" type="xs:string"/>
58
+ <xs:element name="system-out" type="xs:string"/>
59
+
60
+ <xs:element name="testcase">
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
64
+ <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
65
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
66
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
67
+ </xs:sequence>
68
+ <xs:attribute name="name" type="xs:string" use="required"/>
69
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
70
+ <xs:attribute name="time" type="xs:string" use="optional"/>
71
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
72
+ <xs:attribute name="status" type="xs:string" use="optional"/>
73
+ </xs:complexType>
74
+ </xs:element>
75
+
76
+ <xs:element name="testsuite">
77
+ <xs:complexType>
78
+ <xs:sequence>
79
+ <xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
80
+ <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/>
81
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/>
82
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/>
83
+ </xs:sequence>
84
+ <xs:attribute name="name" type="xs:string" use="required"/>
85
+ <xs:attribute name="tests" type="xs:string" use="required"/>
86
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
87
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
88
+ <xs:attribute name="time" type="xs:string" use="optional"/>
89
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
90
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
91
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
92
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
93
+ <xs:attribute name="id" type="xs:string" use="optional"/>
94
+ <xs:attribute name="package" type="xs:string" use="optional"/>
95
+ </xs:complexType>
96
+ </xs:element>
97
+
98
+ <xs:element name="testsuites">
99
+ <xs:complexType>
100
+ <xs:sequence>
101
+ <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/>
102
+ </xs:sequence>
103
+ <xs:attribute name="name" type="xs:string" use="optional"/>
104
+ <xs:attribute name="time" type="xs:string" use="optional"/>
105
+ <xs:attribute name="tests" type="xs:string" use="optional"/>
106
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
107
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
108
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
109
+ </xs:complexType>
110
+ </xs:element>
111
+
112
+
113
+ </xs:schema>
@@ -0,0 +1,91 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+
4
+ <xs:element name="failure">
5
+ <xs:complexType mixed="true">
6
+ <xs:attribute name="type" type="xs:string" use="optional"/>
7
+ <xs:attribute name="message" type="xs:string" use="optional"/>
8
+ </xs:complexType>
9
+ </xs:element>
10
+
11
+ <xs:element name="error">
12
+ <xs:complexType mixed="true">
13
+ <xs:attribute name="type" type="xs:string" use="optional"/>
14
+ <xs:attribute name="message" type="xs:string" use="optional"/>
15
+ </xs:complexType>
16
+ </xs:element>
17
+
18
+ <xs:element name="properties">
19
+ <xs:complexType>
20
+ <xs:sequence>
21
+ <xs:element ref="property" maxOccurs="unbounded"/>
22
+ </xs:sequence>
23
+ </xs:complexType>
24
+ </xs:element>
25
+
26
+ <xs:element name="property">
27
+ <xs:complexType>
28
+ <xs:attribute name="name" type="xs:string" use="required"/>
29
+ <xs:attribute name="value" type="xs:string" use="required"/>
30
+ </xs:complexType>
31
+ </xs:element>
32
+
33
+ <xs:element name="skipped" type="xs:string"/>
34
+ <xs:element name="system-err" type="xs:string"/>
35
+ <xs:element name="system-out" type="xs:string"/>
36
+
37
+ <xs:element name="testcase">
38
+ <xs:complexType>
39
+ <xs:sequence>
40
+ <xs:element ref="skipped" minOccurs="0" maxOccurs="1"/>
41
+ <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
42
+ <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
43
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
44
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
45
+ </xs:sequence>
46
+ <xs:attribute name="name" type="xs:string" use="required"/>
47
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
48
+ <xs:attribute name="time" type="xs:string" use="optional"/>
49
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
50
+ <xs:attribute name="status" type="xs:string" use="optional"/>
51
+ </xs:complexType>
52
+ </xs:element>
53
+
54
+ <xs:element name="testsuite">
55
+ <xs:complexType>
56
+ <xs:sequence>
57
+ <xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
58
+ <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/>
59
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/>
60
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/>
61
+ </xs:sequence>
62
+ <xs:attribute name="name" type="xs:string" use="required"/>
63
+ <xs:attribute name="tests" type="xs:string" use="required"/>
64
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
65
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
66
+ <xs:attribute name="time" type="xs:string" use="optional"/>
67
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
68
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
69
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
70
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
71
+ <xs:attribute name="id" type="xs:string" use="optional"/>
72
+ <xs:attribute name="package" type="xs:string" use="optional"/>
73
+ </xs:complexType>
74
+ </xs:element>
75
+
76
+ <xs:element name="testsuites">
77
+ <xs:complexType>
78
+ <xs:sequence>
79
+ <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/>
80
+ </xs:sequence>
81
+ <xs:attribute name="name" type="xs:string" use="optional"/>
82
+ <xs:attribute name="time" type="xs:string" use="optional"/>
83
+ <xs:attribute name="tests" type="xs:string" use="optional"/>
84
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
85
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
86
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
87
+ </xs:complexType>
88
+ </xs:element>
89
+
90
+
91
+ </xs:schema>
@@ -0,0 +1,97 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+
4
+ <xs:element name="failure">
5
+ <xs:complexType mixed="true">
6
+ <xs:attribute name="type" type="xs:string" use="optional"/>
7
+ <xs:attribute name="message" type="xs:string" use="optional"/>
8
+ </xs:complexType>
9
+ </xs:element>
10
+
11
+ <xs:element name="error">
12
+ <xs:complexType mixed="true">
13
+ <xs:attribute name="type" type="xs:string" use="optional"/>
14
+ <xs:attribute name="message" type="xs:string" use="optional"/>
15
+ </xs:complexType>
16
+ </xs:element>
17
+
18
+ <xs:element name="skipped">
19
+ <xs:complexType mixed="true">
20
+ <xs:attribute name="type" type="xs:string" use="optional"/>
21
+ <xs:attribute name="message" type="xs:string" use="optional"/>
22
+ </xs:complexType>
23
+ </xs:element>
24
+
25
+ <xs:element name="properties">
26
+ <xs:complexType>
27
+ <xs:sequence>
28
+ <xs:element ref="property" maxOccurs="unbounded"/>
29
+ </xs:sequence>
30
+ </xs:complexType>
31
+ </xs:element>
32
+
33
+ <xs:element name="property">
34
+ <xs:complexType>
35
+ <xs:attribute name="name" type="xs:string" use="required"/>
36
+ <xs:attribute name="value" type="xs:string" use="required"/>
37
+ </xs:complexType>
38
+ </xs:element>
39
+
40
+ <xs:element name="system-err" type="xs:string"/>
41
+ <xs:element name="system-out" type="xs:string"/>
42
+
43
+ <xs:element name="testcase">
44
+ <xs:complexType>
45
+ <xs:sequence>
46
+ <xs:element ref="skipped" minOccurs="0" maxOccurs="1"/>
47
+ <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
48
+ <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
49
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
50
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
51
+ </xs:sequence>
52
+ <xs:attribute name="name" type="xs:string" use="required"/>
53
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
54
+ <xs:attribute name="time" type="xs:string" use="optional"/>
55
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
56
+ <xs:attribute name="status" type="xs:string" use="optional"/>
57
+ </xs:complexType>
58
+ </xs:element>
59
+
60
+ <xs:element name="testsuite">
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
64
+ <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/>
65
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/>
66
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/>
67
+ </xs:sequence>
68
+ <xs:attribute name="name" type="xs:string" use="required"/>
69
+ <xs:attribute name="tests" type="xs:string" use="required"/>
70
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
71
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
72
+ <xs:attribute name="time" type="xs:string" use="optional"/>
73
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
74
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
75
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
76
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
77
+ <xs:attribute name="id" type="xs:string" use="optional"/>
78
+ <xs:attribute name="package" type="xs:string" use="optional"/>
79
+ </xs:complexType>
80
+ </xs:element>
81
+
82
+ <xs:element name="testsuites">
83
+ <xs:complexType>
84
+ <xs:sequence>
85
+ <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/>
86
+ </xs:sequence>
87
+ <xs:attribute name="name" type="xs:string" use="optional"/>
88
+ <xs:attribute name="time" type="xs:string" use="optional"/>
89
+ <xs:attribute name="tests" type="xs:string" use="optional"/>
90
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
91
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
92
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
93
+ </xs:complexType>
94
+ </xs:element>
95
+
96
+
97
+ </xs:schema>
@@ -0,0 +1,97 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+
4
+ <xs:element name="failure">
5
+ <xs:complexType mixed="true">
6
+ <xs:attribute name="type" type="xs:string" use="optional"/>
7
+ <xs:attribute name="message" type="xs:string" use="optional"/>
8
+ </xs:complexType>
9
+ </xs:element>
10
+
11
+ <xs:element name="error">
12
+ <xs:complexType mixed="true">
13
+ <xs:attribute name="type" type="xs:string" use="optional"/>
14
+ <xs:attribute name="message" type="xs:string" use="optional"/>
15
+ </xs:complexType>
16
+ </xs:element>
17
+
18
+ <xs:element name="skipped">
19
+ <xs:complexType mixed="true">
20
+ <xs:attribute name="type" type="xs:string" use="optional"/>
21
+ <xs:attribute name="message" type="xs:string" use="optional"/>
22
+ </xs:complexType>
23
+ </xs:element>
24
+
25
+ <xs:element name="properties">
26
+ <xs:complexType>
27
+ <xs:sequence>
28
+ <xs:element ref="property" maxOccurs="unbounded"/>
29
+ </xs:sequence>
30
+ </xs:complexType>
31
+ </xs:element>
32
+
33
+ <xs:element name="property">
34
+ <xs:complexType>
35
+ <xs:attribute name="name" type="xs:string" use="required"/>
36
+ <xs:attribute name="value" type="xs:string" use="required"/>
37
+ </xs:complexType>
38
+ </xs:element>
39
+
40
+ <xs:element name="system-err" type="xs:string"/>
41
+ <xs:element name="system-out" type="xs:string"/>
42
+
43
+ <xs:element name="testcase">
44
+ <xs:complexType>
45
+ <xs:sequence>
46
+ <xs:element ref="skipped" minOccurs="0" maxOccurs="1"/>
47
+ <xs:element ref="error" minOccurs="0" maxOccurs="unbounded"/>
48
+ <xs:element ref="failure" minOccurs="0" maxOccurs="unbounded"/>
49
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="unbounded"/>
50
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="unbounded"/>
51
+ </xs:sequence>
52
+ <xs:attribute name="name" type="xs:string" use="required"/>
53
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
54
+ <xs:attribute name="time" type="xs:string" use="optional"/>
55
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
56
+ <xs:attribute name="status" type="xs:string" use="optional"/>
57
+ </xs:complexType>
58
+ </xs:element>
59
+
60
+ <xs:element name="testsuite">
61
+ <xs:complexType>
62
+ <xs:sequence>
63
+ <xs:element ref="properties" minOccurs="0" maxOccurs="1"/>
64
+ <xs:element ref="testcase" minOccurs="0" maxOccurs="unbounded"/>
65
+ <xs:element ref="system-out" minOccurs="0" maxOccurs="1"/>
66
+ <xs:element ref="system-err" minOccurs="0" maxOccurs="1"/>
67
+ </xs:sequence>
68
+ <xs:attribute name="name" type="xs:string" use="required"/>
69
+ <xs:attribute name="tests" type="xs:string" use="required"/>
70
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
71
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
72
+ <xs:attribute name="time" type="xs:string" use="optional"/>
73
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
74
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
75
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
76
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
77
+ <xs:attribute name="id" type="xs:string" use="optional"/>
78
+ <xs:attribute name="package" type="xs:string" use="optional"/>
79
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
80
+ </xs:complexType>
81
+ </xs:element>
82
+
83
+ <xs:element name="testsuites">
84
+ <xs:complexType>
85
+ <xs:sequence>
86
+ <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/>
87
+ </xs:sequence>
88
+ <xs:attribute name="name" type="xs:string" use="optional"/>
89
+ <xs:attribute name="time" type="xs:string" use="optional"/>
90
+ <xs:attribute name="tests" type="xs:string" use="optional"/>
91
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
92
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
93
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
94
+ </xs:complexType>
95
+ </xs:element>
96
+
97
+ </xs:schema>
@@ -0,0 +1,104 @@
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3
+
4
+ <xs:element name="failure">
5
+ <xs:complexType mixed="true">
6
+ <xs:attribute name="type" type="xs:string" use="optional"/>
7
+ <xs:attribute name="message" type="xs:string" use="optional"/>
8
+ </xs:complexType>
9
+ </xs:element>
10
+
11
+ <xs:element name="error">
12
+ <xs:complexType mixed="true">
13
+ <xs:attribute name="type" type="xs:string" use="optional"/>
14
+ <xs:attribute name="message" type="xs:string" use="optional"/>
15
+ </xs:complexType>
16
+ </xs:element>
17
+
18
+ <xs:element name="skipped">
19
+ <xs:complexType mixed="true">
20
+ <xs:attribute name="type" type="xs:string" use="optional"/>
21
+ <xs:attribute name="message" type="xs:string" use="optional"/>
22
+ </xs:complexType>
23
+ </xs:element>
24
+
25
+ <xs:element name="properties">
26
+ <xs:complexType>
27
+ <xs:sequence>
28
+ <xs:element ref="property" minOccurs="0" maxOccurs="unbounded"/>
29
+ </xs:sequence>
30
+ </xs:complexType>
31
+ </xs:element>
32
+
33
+ <xs:element name="property">
34
+ <xs:complexType>
35
+ <xs:attribute name="name" type="xs:string" use="required"/>
36
+ <xs:attribute name="value" type="xs:string" use="required"/>
37
+ </xs:complexType>
38
+ </xs:element>
39
+
40
+ <xs:element name="system-err" type="xs:string"/>
41
+ <xs:element name="system-out" type="xs:string"/>
42
+
43
+ <xs:element name="testcase">
44
+ <xs:complexType>
45
+ <xs:sequence>
46
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
47
+ <xs:element ref="skipped"/>
48
+ <xs:element ref="error"/>
49
+ <xs:element ref="failure"/>
50
+ <xs:element ref="system-out"/>
51
+ <xs:element ref="system-err"/>
52
+ </xs:choice>
53
+ </xs:sequence>
54
+ <xs:attribute name="name" type="xs:string" use="required"/>
55
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
56
+ <xs:attribute name="time" type="xs:string" use="optional"/>
57
+ <xs:attribute name="classname" type="xs:string" use="optional"/>
58
+ <xs:attribute name="status" type="xs:string" use="optional"/>
59
+ <xs:attribute name="class" type="xs:string" use="optional"/>
60
+ <xs:attribute name="file" type="xs:string" use="optional"/>
61
+ <xs:attribute name="line" type="xs:string" use="optional"/>
62
+ </xs:complexType>
63
+ </xs:element>
64
+
65
+ <xs:element name="testsuite">
66
+ <xs:complexType>
67
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
68
+ <xs:element ref="testsuite"/>
69
+ <xs:element ref="properties"/>
70
+ <xs:element ref="testcase"/>
71
+ <xs:element ref="system-out"/>
72
+ <xs:element ref="system-err"/>
73
+ </xs:choice>
74
+ <xs:attribute name="name" type="xs:string" use="optional"/>
75
+ <xs:attribute name="tests" type="xs:string" use="required"/>
76
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
77
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
78
+ <xs:attribute name="time" type="xs:string" use="optional"/>
79
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
80
+ <xs:attribute name="skipped" type="xs:string" use="optional"/>
81
+ <xs:attribute name="timestamp" type="xs:string" use="optional"/>
82
+ <xs:attribute name="hostname" type="xs:string" use="optional"/>
83
+ <xs:attribute name="id" type="xs:string" use="optional"/>
84
+ <xs:attribute name="package" type="xs:string" use="optional"/>
85
+ <xs:attribute name="assertions" type="xs:string" use="optional"/>
86
+ <xs:attribute name="file" type="xs:string" use="optional"/>
87
+ </xs:complexType>
88
+ </xs:element>
89
+
90
+ <xs:element name="testsuites">
91
+ <xs:complexType>
92
+ <xs:sequence>
93
+ <xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/>
94
+ </xs:sequence>
95
+ <xs:attribute name="name" type="xs:string" use="optional"/>
96
+ <xs:attribute name="time" type="xs:string" use="optional"/>
97
+ <xs:attribute name="tests" type="xs:string" use="optional"/>
98
+ <xs:attribute name="failures" type="xs:string" use="optional"/>
99
+ <xs:attribute name="disabled" type="xs:string" use="optional"/>
100
+ <xs:attribute name="errors" type="xs:string" use="optional"/>
101
+ </xs:complexType>
102
+ </xs:element>
103
+
104
+ </xs:schema>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: junit_report_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jing Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-23 00:00:00.000000000 Z
11
+ date: 2019-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.8'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.8.4
22
+ version: 1.10.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.8'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.8.4
32
+ version: 1.10.4
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 0.8.22
73
+ version: 0.8.23
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: 0.8.22
80
+ version: 0.8.23
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: codeclimate-test-reporter
83
83
  requirement: !ruby/object:Gem::Requirement
@@ -145,6 +145,13 @@ files:
145
145
  - test/test_test_case.rb
146
146
  - test/test_test_suite.rb
147
147
  - test/test_test_suites.rb
148
+ - test_reports_spec/junit-1.0.xsd
149
+ - test_reports_spec/junit-2.xsd
150
+ - test_reports_spec/junit-3.xsd
151
+ - test_reports_spec/junit-4.xsd
152
+ - test_reports_spec/junit-5.xsd
153
+ - test_reports_spec/junit-6.xsd
154
+ - test_reports_spec/junit-7.xsd
148
155
  homepage: https://github.com/thyrlian/JunitReportGenerator
149
156
  licenses:
150
157
  - MIT
@@ -157,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
164
  requirements:
158
165
  - - "~>"
159
166
  - !ruby/object:Gem::Version
160
- version: '2.1'
167
+ version: '2.3'
161
168
  required_rubygems_version: !ruby/object:Gem::Requirement
162
169
  requirements:
163
170
  - - ">="