rspec_junit 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/Thorfile +31 -0
- data/lib/rspec_junit/junit.rb +2 -2
- data/lib/rspec_junit/version.rb +2 -1
- data/lib/rspec_junit.rb +1 -0
- data/rspec_junit.gemspec +5 -4
- metadata +26 -12
- data/Rakefile +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d937177f0e2455b2d5c0b7a939d6463aa2b45a07
|
4
|
+
data.tar.gz: 47f1322d02c9bf69bba52aeb969546d863cbacf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca2ec69902581ef6fd3202877e80ddc79a1800ae20a2623b484ffcd8406a1b72dd9a839d60a9e151112e8821808c8c1b4773b82f3913070458796daf5b277d23
|
7
|
+
data.tar.gz: cd1e5addb365022cbc7fcf7714e97f4a8139a674179d5f1c0af63361759515e7859625f316846815e39e8f070b50ae76dc1085e04d71528db19e920e0a9bb0be
|
data/.travis.yml
CHANGED
data/Thorfile
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'appium_thor'
|
3
|
+
|
4
|
+
Appium::Thor::Config.set do
|
5
|
+
gem_name 'rspec_junit'
|
6
|
+
github_owner 'bootstraponline'
|
7
|
+
end
|
8
|
+
|
9
|
+
# Must use '::' otherwise Default will point to Thor::Sandbox::Default
|
10
|
+
# Debug by calling Thor::Base.subclass_files via Pry
|
11
|
+
#
|
12
|
+
# https://github.com/erikhuda/thor/issues/484
|
13
|
+
#
|
14
|
+
# rubocop:disable Style/ClassAndModuleChildren
|
15
|
+
class ::Default < Thor
|
16
|
+
desc 'spec', 'Run RSpec tests'
|
17
|
+
def spec
|
18
|
+
exec 'bundle exec rspec spec'
|
19
|
+
end
|
20
|
+
|
21
|
+
desc 'cuke', 'Run cucumber tests'
|
22
|
+
def cuke
|
23
|
+
exec 'bundle exec cucumber -f progress'
|
24
|
+
end
|
25
|
+
|
26
|
+
# so many errors.
|
27
|
+
desc 'cop', 'Execute rubocop'
|
28
|
+
def cop
|
29
|
+
exec 'bundle exec rubocop --display-cop-names'
|
30
|
+
end
|
31
|
+
end
|
data/lib/rspec_junit/junit.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# An RSpec formatter for generating results in JUnit format
|
2
|
-
class JUnit
|
2
|
+
class JUnit < RSpec::Core::Formatters::BaseFormatter
|
3
3
|
RSpec::Core::Formatters.register self, :example_passed, :example_failed, :example_pending, :dump_summary
|
4
4
|
|
5
5
|
def initialize(output)
|
6
|
-
|
6
|
+
super
|
7
7
|
@test_suite_results = {}
|
8
8
|
@builder = Builder::XmlMarkup.new :indent => 2
|
9
9
|
end
|
data/lib/rspec_junit/version.rb
CHANGED
data/lib/rspec_junit.rb
CHANGED
data/rspec_junit.gemspec
CHANGED
@@ -3,7 +3,6 @@ require_relative 'lib/rspec_junit/version'
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'rspec_junit'
|
5
5
|
gem.version = RspecJunit::VERSION
|
6
|
-
gem.platform = Gem::Platform::RUBY
|
7
6
|
gem.authors = ['Nat Ritmeyer', 'Ben Snape']
|
8
7
|
gem.email = ['nat@natontesting.com']
|
9
8
|
gem.homepage = 'http://github.com/bootstraponline/rspec_junit'
|
@@ -15,11 +14,13 @@ Gem::Specification.new do |gem|
|
|
15
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
15
|
gem.require_paths = ['lib']
|
17
16
|
|
18
|
-
gem.add_runtime_dependency('rspec', '>= 3.
|
17
|
+
gem.add_runtime_dependency('rspec', '>= 3.3.0')
|
19
18
|
gem.add_runtime_dependency('builder', '>= 3.2.2')
|
20
19
|
|
21
|
-
|
22
|
-
gem.add_development_dependency('
|
20
|
+
|
21
|
+
gem.add_development_dependency('rubocop', '~> 0.34.2')
|
22
|
+
gem.add_development_dependency('appium_thor', '~> 1.0.1')
|
23
|
+
gem.add_development_dependency('nokogiri', '~> 1.6.6.2') # for Ruby 1.8.7
|
23
24
|
gem.add_development_dependency('cucumber', '~> 1.3.16')
|
24
25
|
gem.add_development_dependency('aruba', '~> 0.6.0')
|
25
26
|
gem.add_development_dependency('coveralls', '~> 0.8.1')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_junit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Ritmeyer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 3.
|
20
|
+
version: 3.3.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 3.
|
27
|
+
version: 3.3.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: builder
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,33 +40,47 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 3.2.2
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: rubocop
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 0.34.2
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 0.34.2
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: appium_thor
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.0.1
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.0.1
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: nokogiri
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
59
73
|
requirements:
|
60
74
|
- - "~>"
|
61
75
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
76
|
+
version: 1.6.6.2
|
63
77
|
type: :development
|
64
78
|
prerelease: false
|
65
79
|
version_requirements: !ruby/object:Gem::Requirement
|
66
80
|
requirements:
|
67
81
|
- - "~>"
|
68
82
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
83
|
+
version: 1.6.6.2
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: cucumber
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,7 +166,7 @@ files:
|
|
152
166
|
- HISTORY.txt
|
153
167
|
- LICENSE.txt
|
154
168
|
- README.md
|
155
|
-
-
|
169
|
+
- Thorfile
|
156
170
|
- features/basic.feature
|
157
171
|
- features/individual_suites.feature
|
158
172
|
- features/individual_tests.feature
|
@@ -187,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
201
|
version: '0'
|
188
202
|
requirements: []
|
189
203
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.4.
|
204
|
+
rubygems_version: 2.4.8
|
191
205
|
signing_key:
|
192
206
|
specification_version: 4
|
193
207
|
summary: Yet Another RSpec JUnit Formatter (for Hudson/Jenkins)
|
data/Rakefile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'cucumber/rake/task'
|
3
|
-
require 'rspec/core/rake_task'
|
4
|
-
require 'coveralls/rake/task'
|
5
|
-
Coveralls::RakeTask.new
|
6
|
-
|
7
|
-
namespace :cuke do
|
8
|
-
Cucumber::Rake::Task.new(:all) do |t|
|
9
|
-
t.cucumber_opts = "--format pretty"
|
10
|
-
end
|
11
|
-
|
12
|
-
Cucumber::Rake::Task.new(:wip) do |t|
|
13
|
-
t.cucumber_opts = "--format pretty -t @wip"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
namespace :spec do
|
18
|
-
RSpec::Core::RakeTask.new(:all) do |t|
|
19
|
-
t.pattern = "spec/**/*_spec.rb"
|
20
|
-
t.ruby_opts = "-I lib"
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
task :default => ['spec:all', 'cuke:all', 'coveralls:push']
|
25
|
-
|