tuneup-plist-to-junit 0.0.1
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 +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +52 -0
- data/Rakefile +1 -0
- data/bin/tuneup_plist_to_junit_parser +60 -0
- data/lib/TuneUpPlistToJunit/version.rb +3 -0
- data/lib/tuneup_plist_to_junit_utils.rb +156 -0
- data/test/expected_outputs/all.xml +1106 -0
- data/test/expected_outputs/no_tests.xml +2 -0
- data/test/expected_outputs/no_tests_with_crud.xml +2 -0
- data/test/expected_outputs/single_fail_with_children.xml +684 -0
- data/test/expected_outputs/single_passing.xml +4 -0
- data/test/test_plists/all.plist +2142 -0
- data/test/test_plists/no_tests.plist +11 -0
- data/test/test_plists/no_tests_with_crud.plist +21 -0
- data/test/test_plists/single_fail_with_children.plist +1094 -0
- data/test/test_plists/single_passing.plist +51 -0
- data/test/tuneup_plist_to_junit_utils_spec.rb +36 -0
- data/tuneup-plist-to-junit.gemspec +27 -0
- metadata +148 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>All Samples</key>
|
6
|
+
<array>
|
7
|
+
<dict>
|
8
|
+
<key>LogType</key>
|
9
|
+
<string>Pass</string>
|
10
|
+
<key>Message</key>
|
11
|
+
<string>Holding login button shows the edit url popup</string>
|
12
|
+
<key>Timestamp</key>
|
13
|
+
<date>2014-03-04T20:36:27Z</date>
|
14
|
+
<key>Type</key>
|
15
|
+
<integer>4</integer>
|
16
|
+
</dict>
|
17
|
+
<dict>
|
18
|
+
<key>LogType</key>
|
19
|
+
<string>Pass</string>
|
20
|
+
<key>Message</key>
|
21
|
+
<string>Holding login button shows the edit url popup</string>
|
22
|
+
<key>Timestamp</key>
|
23
|
+
<date>2014-03-04T20:36:41Z</date>
|
24
|
+
<key>Type</key>
|
25
|
+
<integer>5</integer>
|
26
|
+
</dict>
|
27
|
+
<dict>
|
28
|
+
<key>LogType</key>
|
29
|
+
<string>Debug</string>
|
30
|
+
<key>Message</key>
|
31
|
+
<string>target.frontMostApp().mainWindow().tableViews()["Menu Table"].cells()["Log Out"].tap()</string>
|
32
|
+
<key>Timestamp</key>
|
33
|
+
<date>2014-03-04T20:39:11Z</date>
|
34
|
+
<key>Type</key>
|
35
|
+
<integer>0</integer>
|
36
|
+
</dict>
|
37
|
+
<dict>
|
38
|
+
<key>LogType</key>
|
39
|
+
<string>Pass</string>
|
40
|
+
<key>Message</key>
|
41
|
+
<string>Clicking the log out button starts the log out process</string>
|
42
|
+
<key>Timestamp</key>
|
43
|
+
<date>2014-03-04T20:39:13Z</date>
|
44
|
+
<key>Type</key>
|
45
|
+
<integer>5</integer>
|
46
|
+
</dict>
|
47
|
+
</array>
|
48
|
+
<key>version</key>
|
49
|
+
<integer>2</integer>
|
50
|
+
</dict>
|
51
|
+
</plist>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'tuneup_plist_to_junit_utils'
|
2
|
+
|
3
|
+
describe TuneUpPlistToJunitUtils, '#generate_reports' do
|
4
|
+
it 'generates the correct output for no tests' do
|
5
|
+
utils = TuneUpPlistToJunitUtils.new
|
6
|
+
utils.generate_reports('test/test_plists/no_tests.plist').should eq(File.read('test/expected_outputs/no_tests.xml'))
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
describe TuneUpPlistToJunitUtils, '#generate_reports' do
|
11
|
+
it 'generates the correct output for no tests, but with log messages' do
|
12
|
+
utils = TuneUpPlistToJunitUtils.new
|
13
|
+
utils.generate_reports('test/test_plists/no_tests_with_crud.plist').should eq(File.read('test/expected_outputs/no_tests_with_crud.xml'))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe TuneUpPlistToJunitUtils, '#generate_reports' do
|
18
|
+
it 'generates the correct output for a single failure with children' do
|
19
|
+
utils = TuneUpPlistToJunitUtils.new
|
20
|
+
utils.generate_reports('test/test_plists/single_fail_with_children.plist').should eq(File.read('test/expected_outputs/single_fail_with_children.xml'))
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe TuneUpPlistToJunitUtils, '#generate_reports' do
|
25
|
+
it 'generates the correct output for a single passing test' do
|
26
|
+
utils = TuneUpPlistToJunitUtils.new
|
27
|
+
utils.generate_reports('test/test_plists/single_passing.plist').should eq(File.read('test/expected_outputs/single_passing.xml'))
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe TuneUpPlistToJunitUtils, '#generate_reports' do
|
32
|
+
it 'generates the correct output for a lots of tests with failures/successes' do
|
33
|
+
utils = TuneUpPlistToJunitUtils.new
|
34
|
+
utils.generate_reports('test/test_plists/all.plist').should eq(File.read('test/expected_outputs/all.xml'))
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'TuneUpPlistToJunit/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'tuneup-plist-to-junit'
|
8
|
+
spec.version = TuneUpPlistToJunit::VERSION
|
9
|
+
spec.authors = ['Vincent Pizzo']
|
10
|
+
spec.email = %w(vincent.pizzo@singlewire.com)
|
11
|
+
spec.description = %q{Processes a UIAutomation Plist file as generated by tuneup.js into a JUnit format}
|
12
|
+
spec.summary = %q{Processes a UIAutomation Plist file as generated by tuneup.js into a JUnit format. Used so it can easily be parsed by CI such as Jenkins.}
|
13
|
+
spec.homepage = 'http://github.com/vincentjames501/TuneUpPlistToJunit'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = %w(lib)
|
20
|
+
|
21
|
+
spec.add_dependency 'plist', '~> 3.1.0'
|
22
|
+
spec.add_dependency 'nokogiri', '~> 1.6.1'
|
23
|
+
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 2.14.1'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tuneup-plist-to-junit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vincent Pizzo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: plist
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.1.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.6.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.6.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.14.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.14.1
|
83
|
+
description: Processes a UIAutomation Plist file as generated by tuneup.js into a
|
84
|
+
JUnit format
|
85
|
+
email:
|
86
|
+
- vincent.pizzo@singlewire.com
|
87
|
+
executables:
|
88
|
+
- tuneup_plist_to_junit_parser
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- ".gitignore"
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- bin/tuneup_plist_to_junit_parser
|
98
|
+
- lib/TuneUpPlistToJunit/version.rb
|
99
|
+
- lib/tuneup_plist_to_junit_utils.rb
|
100
|
+
- test/expected_outputs/all.xml
|
101
|
+
- test/expected_outputs/no_tests.xml
|
102
|
+
- test/expected_outputs/no_tests_with_crud.xml
|
103
|
+
- test/expected_outputs/single_fail_with_children.xml
|
104
|
+
- test/expected_outputs/single_passing.xml
|
105
|
+
- test/test_plists/all.plist
|
106
|
+
- test/test_plists/no_tests.plist
|
107
|
+
- test/test_plists/no_tests_with_crud.plist
|
108
|
+
- test/test_plists/single_fail_with_children.plist
|
109
|
+
- test/test_plists/single_passing.plist
|
110
|
+
- test/tuneup_plist_to_junit_utils_spec.rb
|
111
|
+
- tuneup-plist-to-junit.gemspec
|
112
|
+
homepage: http://github.com/vincentjames501/TuneUpPlistToJunit
|
113
|
+
licenses:
|
114
|
+
- MIT
|
115
|
+
metadata: {}
|
116
|
+
post_install_message:
|
117
|
+
rdoc_options: []
|
118
|
+
require_paths:
|
119
|
+
- lib
|
120
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
requirements: []
|
131
|
+
rubyforge_project:
|
132
|
+
rubygems_version: 2.2.0
|
133
|
+
signing_key:
|
134
|
+
specification_version: 4
|
135
|
+
summary: Processes a UIAutomation Plist file as generated by tuneup.js into a JUnit
|
136
|
+
format. Used so it can easily be parsed by CI such as Jenkins.
|
137
|
+
test_files:
|
138
|
+
- test/expected_outputs/all.xml
|
139
|
+
- test/expected_outputs/no_tests.xml
|
140
|
+
- test/expected_outputs/no_tests_with_crud.xml
|
141
|
+
- test/expected_outputs/single_fail_with_children.xml
|
142
|
+
- test/expected_outputs/single_passing.xml
|
143
|
+
- test/test_plists/all.plist
|
144
|
+
- test/test_plists/no_tests.plist
|
145
|
+
- test/test_plists/no_tests_with_crud.plist
|
146
|
+
- test/test_plists/single_fail_with_children.plist
|
147
|
+
- test/test_plists/single_passing.plist
|
148
|
+
- test/tuneup_plist_to_junit_utils_spec.rb
|