ci_reporter 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.hoerc +2 -0
- data/.rspec +2 -0
- data/.travis.before_install.sh +13 -0
- data/.travis.yml +3 -1
- data/Gemfile +1 -11
- data/History.txt +7 -0
- data/Manifest.txt +5 -4
- data/Rakefile +40 -21
- data/acceptance/cucumber/cucumber_example.feature +2 -2
- data/acceptance/spinach/features/spinach_example.feature +1 -1
- data/acceptance/spinach/features/steps/example_spinach_feature.rb +34 -0
- data/acceptance/verification_spec.rb +9 -11
- data/ci_reporter.gemspec +13 -12
- data/lib/ci/reporter/rake/spinach_loader.rb +1 -1
- data/lib/ci/reporter/report_manager.rb +2 -1
- data/lib/ci/reporter/spinach.rb +6 -1
- data/lib/ci/reporter/version.rb +1 -1
- data/spec/ci/reporter/cucumber_spec.rb +34 -34
- data/spec/ci/reporter/report_manager_spec.rb +20 -5
- data/spec/ci/reporter/rspec_spec.rb +20 -20
- data/spec/ci/reporter/test_suite_spec.rb +34 -34
- data/spec/ci/reporter/test_unit_spec.rb +8 -8
- metadata +20 -19
- data/Gemfile.lock +0 -63
- data/acceptance/spinach/Gemfile +0 -4
- data/acceptance/spinach/Gemfile.lock +0 -35
- data/acceptance/spinach/features/steps/example_steps.rb +0 -36
data/.hoerc
ADDED
data/.rspec
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
set -x
|
4
|
+
|
5
|
+
# Link to pre-built racc for JRuby
|
6
|
+
[ "$TRAVIS_RUBY_VERSION" != "jruby" ] && exit 0
|
7
|
+
rvm 1.9.3 do gem install racc
|
8
|
+
GEMDIR=$(rvm 1.9.3 do gem env gemdir)
|
9
|
+
JRUBY_GEMDIR=$(rvm jruby do gem env gemdir)
|
10
|
+
|
11
|
+
rm -f $JRUBY_GEMDIR/{gems,specifications}/racc*
|
12
|
+
ln -s $GEMDIR/gems/racc-* $JRUBY_GEMDIR/gems/
|
13
|
+
ln -s $GEMDIR/specifications/racc-* $JRUBY_GEMDIR/specifications/
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,17 +6,7 @@
|
|
6
6
|
|
7
7
|
source 'https://rubygems.org'
|
8
8
|
|
9
|
-
|
9
|
+
gemspec
|
10
10
|
group :development do
|
11
|
-
gem 'hoe'
|
12
|
-
gem 'hoe-git', '~> 1.5.0'
|
13
|
-
gem 'rubyforge'
|
14
|
-
gem 'cucumber'
|
15
|
-
gem 'spinach', '< 0.2'
|
16
|
-
gem 'rspec', '> 2.0.0'
|
17
|
-
gem 'test-unit', '> 2.0.0'
|
18
|
-
gem 'minitest'
|
19
|
-
gem 'rcov', :platform => :ruby_18
|
20
|
-
gem 'rdoc'
|
21
11
|
gem 'jruby-openssl', :platform => :jruby
|
22
12
|
end
|
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 1.9.1 (12/26/13)
|
2
|
+
|
3
|
+
- GH #111: Add MIT license in gemspec (Dave Golombek)
|
4
|
+
- GH #84: Fix for filename too long on ecryptfs (Gintaras Sakalauskas)
|
5
|
+
- Upgrade RSpec, Cucumber and Spinach deps and fix deprecations
|
6
|
+
- Get Travis build green again for 1.9.3, 2.0.0 and JRuby
|
7
|
+
|
1
8
|
== 1.9.0 (07/02/13)
|
2
9
|
|
3
10
|
- Merge PR #102 (thanks docwhat)
|
data/Manifest.txt
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
.gemtest
|
2
|
+
.hoerc
|
3
|
+
.rspec
|
4
|
+
.travis.before_install.sh
|
1
5
|
.travis.yml
|
2
6
|
Gemfile
|
3
|
-
Gemfile.lock
|
4
7
|
History.txt
|
5
8
|
LICENSE.txt
|
6
9
|
Manifest.txt
|
@@ -10,10 +13,8 @@ acceptance/cucumber/cucumber_example.feature
|
|
10
13
|
acceptance/cucumber/step_definitions/development_steps.rb
|
11
14
|
acceptance/minitest_example_test.rb
|
12
15
|
acceptance/rspec_example_spec.rb
|
13
|
-
acceptance/spinach/Gemfile
|
14
|
-
acceptance/spinach/Gemfile.lock
|
15
16
|
acceptance/spinach/features/spinach_example.feature
|
16
|
-
acceptance/spinach/features/steps/
|
17
|
+
acceptance/spinach/features/steps/example_spinach_feature.rb
|
17
18
|
acceptance/test_unit_example_test.rb
|
18
19
|
acceptance/verification_spec.rb
|
19
20
|
ci_reporter.gemspec
|
data/Rakefile
CHANGED
@@ -25,13 +25,13 @@ begin
|
|
25
25
|
p.test_globs = ["spec/**/*_spec.rb"]
|
26
26
|
p.extra_deps << [ 'builder', '>= 2.1.2' ]
|
27
27
|
p.extra_dev_deps << [ 'hoe-git', '~> 1.5.0' ]
|
28
|
-
p.extra_dev_deps << [ 'cucumber', '
|
28
|
+
p.extra_dev_deps << [ 'cucumber', '>= 1.3.3' ]
|
29
29
|
p.extra_dev_deps << [ 'rspec', '> 2.0.0' ]
|
30
30
|
p.extra_dev_deps << [ 'test-unit', '> 2.4.9' ]
|
31
31
|
p.extra_dev_deps << [ 'minitest', '~> 2.2.0' ]
|
32
|
-
p.extra_dev_deps << [ 'spinach', '
|
33
|
-
|
32
|
+
p.extra_dev_deps << [ 'spinach', '>= 0.8.7' ]
|
34
33
|
p.clean_globs += ["spec/reports", "acceptance/reports"]
|
34
|
+
p.license 'MIT'
|
35
35
|
end
|
36
36
|
hoe.spec.rdoc_options += ["-SHN", "-f", "darkfish"]
|
37
37
|
|
@@ -43,37 +43,56 @@ rescue LoadError
|
|
43
43
|
puts "You really need Hoe installed to be able to package this gem"
|
44
44
|
end
|
45
45
|
|
46
|
-
|
47
|
-
|
48
|
-
ENV['CI_REPORTS'] = "acceptance/reports"
|
46
|
+
def run_ruby_acceptance(cmd)
|
47
|
+
ENV['CI_REPORTS'] ||= "acceptance/reports"
|
49
48
|
if ENV['RUBYOPT']
|
50
49
|
opts = ENV['RUBYOPT']
|
51
50
|
ENV['RUBYOPT'] = nil
|
52
51
|
else
|
53
52
|
opts = "-rubygems"
|
54
53
|
end
|
55
|
-
rspec = "#{Gem.loaded_specs['rspec-core'].gem_dir}/exe/rspec"
|
56
|
-
cucumber = "#{Gem.loaded_specs['cucumber'].gem_dir}/bin/cucumber"
|
57
54
|
begin
|
58
55
|
result_proc = proc {|ok,*| puts "Failures above are expected." unless ok }
|
59
|
-
ruby "-Ilib #{opts}
|
60
|
-
ruby "-Ilib #{opts} -rci/reporter/rake/minitest_loader acceptance/minitest_example_test.rb", &result_proc
|
61
|
-
ruby "-Ilib #{opts} -S #{rspec} --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec acceptance/rspec_example_spec.rb", &result_proc
|
62
|
-
ruby "-Ilib #{opts} -rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber", &result_proc
|
63
|
-
Dir.chdir 'acceptance/spinach' do
|
64
|
-
Bundler.with_clean_env do
|
65
|
-
ENV['CI_REPORTS'] = "../reports/spinach"
|
66
|
-
sh "bundle"
|
67
|
-
spinach = "#{Gem.loaded_specs['spinach'].gem_dir}/bin/spinach"
|
68
|
-
ruby "-I../../lib #{opts} -rci/reporter/rake/spinach_loader -S #{spinach}", &result_proc
|
69
|
-
end
|
70
|
-
end
|
56
|
+
ruby "-Ilib #{opts} #{cmd}", &result_proc
|
71
57
|
ensure
|
72
58
|
ENV['RUBYOPT'] = opts if opts != "-rubygems"
|
73
59
|
ENV.delete 'CI_REPORTS'
|
74
60
|
end
|
75
61
|
end
|
76
|
-
|
62
|
+
|
63
|
+
|
64
|
+
namespace :generate do
|
65
|
+
task :test_unit do
|
66
|
+
run_ruby_acceptance "-rci/reporter/rake/test_unit_loader acceptance/test_unit_example_test.rb"
|
67
|
+
end
|
68
|
+
|
69
|
+
task :minitest do
|
70
|
+
run_ruby_acceptance "-rci/reporter/rake/minitest_loader acceptance/minitest_example_test.rb"
|
71
|
+
end
|
72
|
+
|
73
|
+
task :rspec do
|
74
|
+
rspec = "#{Gem.loaded_specs['rspec-core'].gem_dir}/exe/rspec"
|
75
|
+
run_ruby_acceptance "-S #{rspec} --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec acceptance/rspec_example_spec.rb"
|
76
|
+
end
|
77
|
+
|
78
|
+
task :cucumber do
|
79
|
+
cucumber = "#{Gem.loaded_specs['cucumber'].gem_dir}/bin/cucumber"
|
80
|
+
run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
|
81
|
+
end
|
82
|
+
|
83
|
+
task :spinach do
|
84
|
+
spinach = "#{Gem.loaded_specs['spinach'].gem_dir}/bin/spinach"
|
85
|
+
run_ruby_acceptance "-I../../lib -rci/reporter/rake/spinach_loader -S #{spinach} -r ci_reporter -f acceptance/spinach/features"
|
86
|
+
end
|
87
|
+
|
88
|
+
task :clean do
|
89
|
+
rm_rf "acceptance/reports"
|
90
|
+
end
|
91
|
+
|
92
|
+
task :all => [:clean, :test_unit, :minitest, :rspec, :cucumber, :spinach]
|
93
|
+
end
|
94
|
+
|
95
|
+
task :acceptance => "generate:all"
|
77
96
|
|
78
97
|
require 'rspec/core/rake_task'
|
79
98
|
RSpec::Core::RakeTask.new(:acceptance_spec) do |t|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Feature: Example feature
|
1
|
+
Feature: Example Cucumber feature
|
2
2
|
As a conscientious developer who writes features
|
3
3
|
I want to be able to see my features passing on the CI Server
|
4
4
|
So that I can bask in the glow of a green bar
|
@@ -16,4 +16,4 @@ Feature: Example feature
|
|
16
16
|
Scenario: Bad coder
|
17
17
|
Given that I can't code for peanuts
|
18
18
|
And I write step definitions that throw exceptions
|
19
|
-
Then I shouldn't be allowed out in public
|
19
|
+
Then I shouldn't be allowed out in public
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
|
3
|
+
class Spinach::Features::ExampleSpinachFeature < Spinach::FeatureSteps
|
4
|
+
include RSpec::Matchers
|
5
|
+
|
6
|
+
step 'that I am a conscientious developer' do
|
7
|
+
end
|
8
|
+
|
9
|
+
step 'I write cucumber features' do
|
10
|
+
end
|
11
|
+
|
12
|
+
step 'I should see a green bar' do
|
13
|
+
end
|
14
|
+
|
15
|
+
step 'that I am a lazy hacker' do
|
16
|
+
end
|
17
|
+
|
18
|
+
step 'I don\'t bother writing cucumber features' do
|
19
|
+
false.should be_true
|
20
|
+
end
|
21
|
+
|
22
|
+
step 'I should be fired' do
|
23
|
+
end
|
24
|
+
|
25
|
+
step 'that I can\'t code for peanuts' do
|
26
|
+
end
|
27
|
+
|
28
|
+
step 'I write step definitions that throw exceptions' do
|
29
|
+
raise RuntimeError, "User error!"
|
30
|
+
end
|
31
|
+
|
32
|
+
step 'I shouldn\'t be allowed out in public' do
|
33
|
+
end
|
34
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2006-
|
2
|
+
# Copyright (c) 2006-2013 Nick Sieger <nicksieger@gmail.com>
|
3
3
|
# See the file LICENSE.txt included with the distribution for
|
4
4
|
# software license details.
|
5
5
|
#++
|
@@ -109,15 +109,15 @@ describe "RSpec acceptance" do
|
|
109
109
|
end
|
110
110
|
|
111
111
|
describe "Cucumber acceptance" do
|
112
|
-
it "should generate
|
113
|
-
File.exist?(File.join(REPORTS_DIR, 'FEATURES-Example-feature.xml')).should == true
|
112
|
+
it "should generate one XML file" do
|
113
|
+
File.exist?(File.join(REPORTS_DIR, 'FEATURES-Example-Cucumber-feature.xml')).should == true
|
114
114
|
|
115
|
-
Dir["#{REPORTS_DIR}/FEATURES
|
115
|
+
Dir["#{REPORTS_DIR}/FEATURES-*Cucumber*.xml"].length.should == 1
|
116
116
|
end
|
117
117
|
|
118
118
|
context "FEATURES report file" do
|
119
119
|
before :each do
|
120
|
-
@doc = File.open(File.join(REPORTS_DIR, 'FEATURES-Example-feature.xml')) do |f|
|
120
|
+
@doc = File.open(File.join(REPORTS_DIR, 'FEATURES-Example-Cucumber-feature.xml')) do |f|
|
121
121
|
REXML::Document.new(f)
|
122
122
|
end
|
123
123
|
end
|
@@ -143,18 +143,16 @@ describe "Cucumber acceptance" do
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
SPINACH_REPORTS_DIR = File.expand_path('spinach', REPORTS_DIR)
|
147
|
-
|
148
146
|
describe "Spinach acceptance" do
|
149
|
-
it "should generate
|
150
|
-
File.exist?(File.join(
|
147
|
+
it "should generate one XML file" do
|
148
|
+
File.exist?(File.join(REPORTS_DIR, 'FEATURES-Example-Spinach-feature.xml')).should == true
|
151
149
|
|
152
|
-
Dir["#{
|
150
|
+
Dir["#{REPORTS_DIR}/FEATURES-*Spinach*.xml"].length.should == 1
|
153
151
|
end
|
154
152
|
|
155
153
|
context "SPINACH report file" do
|
156
154
|
before :each do
|
157
|
-
@doc = File.open(File.join(
|
155
|
+
@doc = File.open(File.join(REPORTS_DIR, 'FEATURES-Example-Spinach-feature.xml')) do |f|
|
158
156
|
REXML::Document.new(f)
|
159
157
|
end
|
160
158
|
end
|
data/ci_reporter.gemspec
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "ci_reporter"
|
5
|
-
s.version = "1.9.
|
5
|
+
s.version = "1.9.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Nick Sieger"]
|
9
|
-
s.date = "2013-
|
9
|
+
s.date = "2013-12-26"
|
10
10
|
s.description = "CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows you to generate XML reports of your test, spec and/or feature runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report XML format, thus allowing your CI system to track test/spec successes and failures."
|
11
11
|
s.email = "nick@nicksieger.com"
|
12
12
|
s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
|
13
|
-
s.files = [".travis.
|
13
|
+
s.files = [".gemtest", ".hoerc", ".rspec", ".travis.before_install.sh", ".travis.yml", "Gemfile", "History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc", "Rakefile", "acceptance/cucumber/cucumber_example.feature", "acceptance/cucumber/step_definitions/development_steps.rb", "acceptance/minitest_example_test.rb", "acceptance/rspec_example_spec.rb", "acceptance/spinach/features/spinach_example.feature", "acceptance/spinach/features/steps/example_spinach_feature.rb", "acceptance/test_unit_example_test.rb", "acceptance/verification_spec.rb", "ci_reporter.gemspec", "lib/ci/reporter/core.rb", "lib/ci/reporter/cucumber.rb", "lib/ci/reporter/minitest.rb", "lib/ci/reporter/rake/cucumber.rb", "lib/ci/reporter/rake/cucumber_loader.rb", "lib/ci/reporter/rake/minitest.rb", "lib/ci/reporter/rake/minitest_loader.rb", "lib/ci/reporter/rake/rspec.rb", "lib/ci/reporter/rake/rspec_loader.rb", "lib/ci/reporter/rake/spinach.rb", "lib/ci/reporter/rake/spinach_loader.rb", "lib/ci/reporter/rake/test_unit.rb", "lib/ci/reporter/rake/test_unit_loader.rb", "lib/ci/reporter/rake/utils.rb", "lib/ci/reporter/report_manager.rb", "lib/ci/reporter/rspec.rb", "lib/ci/reporter/spinach.rb", "lib/ci/reporter/test_suite.rb", "lib/ci/reporter/test_unit.rb", "lib/ci/reporter/version.rb", "spec/ci/reporter/cucumber_spec.rb", "spec/ci/reporter/output_capture_spec.rb", "spec/ci/reporter/rake/rake_tasks_spec.rb", "spec/ci/reporter/report_manager_spec.rb", "spec/ci/reporter/rspec_spec.rb", "spec/ci/reporter/test_suite_spec.rb", "spec/ci/reporter/test_unit_spec.rb", "spec/spec_helper.rb", "stub.rake", "tasks/ci_reporter.rake"]
|
14
14
|
s.homepage = "http://caldersphere.rubyforge.org/ci_reporter"
|
15
|
+
s.licenses = ["MIT"]
|
15
16
|
s.rdoc_options = ["--main", "README.rdoc", "-SHN", "-f", "darkfish"]
|
16
17
|
s.require_paths = ["lib"]
|
17
18
|
s.rubyforge_project = "caldersphere"
|
@@ -27,34 +28,34 @@ Gem::Specification.new do |s|
|
|
27
28
|
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
28
29
|
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
29
30
|
s.add_development_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
30
|
-
s.add_development_dependency(%q<cucumber>, ["
|
31
|
+
s.add_development_dependency(%q<cucumber>, [">= 1.3.3"])
|
31
32
|
s.add_development_dependency(%q<rspec>, ["> 2.0.0"])
|
32
33
|
s.add_development_dependency(%q<test-unit>, ["> 2.4.9"])
|
33
34
|
s.add_development_dependency(%q<minitest>, ["~> 2.2.0"])
|
34
|
-
s.add_development_dependency(%q<spinach>, ["
|
35
|
-
s.add_development_dependency(%q<hoe>, ["~> 3.
|
35
|
+
s.add_development_dependency(%q<spinach>, [">= 0.8.7"])
|
36
|
+
s.add_development_dependency(%q<hoe>, ["~> 3.7"])
|
36
37
|
else
|
37
38
|
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
38
39
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
39
40
|
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
40
41
|
s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
41
|
-
s.add_dependency(%q<cucumber>, ["
|
42
|
+
s.add_dependency(%q<cucumber>, [">= 1.3.3"])
|
42
43
|
s.add_dependency(%q<rspec>, ["> 2.0.0"])
|
43
44
|
s.add_dependency(%q<test-unit>, ["> 2.4.9"])
|
44
45
|
s.add_dependency(%q<minitest>, ["~> 2.2.0"])
|
45
|
-
s.add_dependency(%q<spinach>, ["
|
46
|
-
s.add_dependency(%q<hoe>, ["~> 3.
|
46
|
+
s.add_dependency(%q<spinach>, [">= 0.8.7"])
|
47
|
+
s.add_dependency(%q<hoe>, ["~> 3.7"])
|
47
48
|
end
|
48
49
|
else
|
49
50
|
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
50
51
|
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
51
52
|
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
52
53
|
s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
|
53
|
-
s.add_dependency(%q<cucumber>, ["
|
54
|
+
s.add_dependency(%q<cucumber>, [">= 1.3.3"])
|
54
55
|
s.add_dependency(%q<rspec>, ["> 2.0.0"])
|
55
56
|
s.add_dependency(%q<test-unit>, ["> 2.4.9"])
|
56
57
|
s.add_dependency(%q<minitest>, ["~> 2.2.0"])
|
57
|
-
s.add_dependency(%q<spinach>, ["
|
58
|
-
s.add_dependency(%q<hoe>, ["~> 3.
|
58
|
+
s.add_dependency(%q<spinach>, [">= 0.8.7"])
|
59
|
+
s.add_dependency(%q<hoe>, ["~> 3.7"])
|
59
60
|
end
|
60
61
|
end
|
@@ -43,7 +43,8 @@ module CI #:nodoc:
|
|
43
43
|
# shorten basename if it exceeds 240 characters
|
44
44
|
# most filesystems have a 255 character limit
|
45
45
|
# so leave some room for the sidesteps
|
46
|
-
|
46
|
+
max_filename_size = (ENV['MAX_FILENAME_SIZE'] || MAX_FILENAME_SIZE).to_i
|
47
|
+
basename = basename[0..max_filename_size] if basename.length > max_filename_size
|
47
48
|
|
48
49
|
# the initial filename, e.g. SPEC-MailsController.xml
|
49
50
|
filename = [basename, suffix].join(".")
|
data/lib/ci/reporter/spinach.rb
CHANGED
@@ -4,7 +4,8 @@ require 'spinach'
|
|
4
4
|
module CI
|
5
5
|
module Reporter
|
6
6
|
class Spinach < ::Spinach::Reporter
|
7
|
-
def initialize
|
7
|
+
def initialize(options = nil)
|
8
|
+
@options = options
|
8
9
|
@report_manager = ReportManager.new('features')
|
9
10
|
end
|
10
11
|
|
@@ -73,3 +74,7 @@ module CI
|
|
73
74
|
end
|
74
75
|
end
|
75
76
|
end
|
77
|
+
|
78
|
+
class Spinach::Reporter
|
79
|
+
CiReporter = ::CI::Reporter::Spinach
|
80
|
+
end
|
data/lib/ci/reporter/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2006-
|
1
|
+
# Copyright (c) 2006-2013 Nick Sieger <nicksieger@gmail.com>
|
2
2
|
# See the file LICENSE.txt included with the distribution for
|
3
3
|
# software license details.
|
4
4
|
|
@@ -8,16 +8,16 @@ require 'ci/reporter/cucumber'
|
|
8
8
|
describe "The Cucumber reporter" do
|
9
9
|
describe CI::Reporter::CucumberFailure do
|
10
10
|
before(:each) do
|
11
|
-
@klass =
|
12
|
-
@klass.stub
|
11
|
+
@klass = double("class")
|
12
|
+
@klass.stub(:name).and_return("Exception name")
|
13
13
|
|
14
|
-
@exception =
|
15
|
-
@exception.stub
|
16
|
-
@exception.stub
|
17
|
-
@exception.stub
|
14
|
+
@exception = double("exception")
|
15
|
+
@exception.stub(:class).and_return(@klass)
|
16
|
+
@exception.stub(:message).and_return("Exception message")
|
17
|
+
@exception.stub(:backtrace).and_return(["First line", "Second line"])
|
18
18
|
|
19
|
-
@step =
|
20
|
-
@step.stub
|
19
|
+
@step = double("step")
|
20
|
+
@step.stub(:exception).and_return(@exception)
|
21
21
|
|
22
22
|
@cucumber_failure = CI::Reporter::CucumberFailure.new(@step)
|
23
23
|
end
|
@@ -55,11 +55,11 @@ describe "The Cucumber reporter" do
|
|
55
55
|
|
56
56
|
describe CI::Reporter::Cucumber do
|
57
57
|
before(:each) do
|
58
|
-
@step_mother =
|
59
|
-
@io =
|
58
|
+
@step_mother = double("step_mother")
|
59
|
+
@io = double("io")
|
60
60
|
|
61
|
-
@report_manager =
|
62
|
-
CI::Reporter::ReportManager.stub
|
61
|
+
@report_manager = double("report_manager")
|
62
|
+
CI::Reporter::ReportManager.stub(:new).and_return(@report_manager)
|
63
63
|
end
|
64
64
|
|
65
65
|
def new_instance
|
@@ -88,12 +88,12 @@ describe "The Cucumber reporter" do
|
|
88
88
|
@cucumber = new_instance
|
89
89
|
@cucumber.feature_name(nil, "Demo feature")
|
90
90
|
|
91
|
-
@test_suite =
|
92
|
-
CI::Reporter::TestSuite.stub
|
91
|
+
@test_suite = double("test_suite", :start => nil, :finish => nil, :name= => nil)
|
92
|
+
CI::Reporter::TestSuite.stub(:new).and_return(@test_suite)
|
93
93
|
|
94
|
-
@feature =
|
94
|
+
@feature = double("feature")
|
95
95
|
|
96
|
-
@report_manager.stub
|
96
|
+
@report_manager.stub(:write_report)
|
97
97
|
end
|
98
98
|
|
99
99
|
context "before" do
|
@@ -113,12 +113,12 @@ describe "The Cucumber reporter" do
|
|
113
113
|
@cucumber = new_instance
|
114
114
|
@cucumber.feature_name(nil, "Demo feature")
|
115
115
|
|
116
|
-
@test_suite =
|
117
|
-
CI::Reporter::TestSuite.stub
|
116
|
+
@test_suite = double("test_suite", :start => nil, :finish => nil, :name= => nil)
|
117
|
+
CI::Reporter::TestSuite.stub(:new).and_return(@test_suite)
|
118
118
|
|
119
|
-
@feature =
|
119
|
+
@feature = double("feature")
|
120
120
|
|
121
|
-
@report_manager.stub
|
121
|
+
@report_manager.stub(:write_report)
|
122
122
|
|
123
123
|
@cucumber.before_feature(@feature)
|
124
124
|
end
|
@@ -139,16 +139,16 @@ describe "The Cucumber reporter" do
|
|
139
139
|
before(:each) do
|
140
140
|
@testcases = []
|
141
141
|
|
142
|
-
@test_suite =
|
142
|
+
@test_suite = double("test_suite", :testcases => @testcases)
|
143
143
|
|
144
144
|
@cucumber = new_instance
|
145
|
-
@cucumber.stub
|
145
|
+
@cucumber.stub(:test_suite).and_return(@test_suite)
|
146
146
|
|
147
|
-
@test_case =
|
148
|
-
CI::Reporter::TestCase.stub
|
147
|
+
@test_case = double("test_case", :start => nil, :finish => nil, :name => "Step Name")
|
148
|
+
CI::Reporter::TestCase.stub(:new).and_return(@test_case)
|
149
149
|
|
150
|
-
@step =
|
151
|
-
@step.stub
|
150
|
+
@step = double("step", :status => :passed)
|
151
|
+
@step.stub(:name).and_return("Step Name")
|
152
152
|
end
|
153
153
|
|
154
154
|
context "before steps" do
|
@@ -182,19 +182,19 @@ describe "The Cucumber reporter" do
|
|
182
182
|
end
|
183
183
|
|
184
184
|
it "should alter the name of a test case that is pending to include '(PENDING)'" do
|
185
|
-
@step.stub
|
185
|
+
@step.stub(:status).and_return(:pending)
|
186
186
|
@test_case.should_receive(:name=).with("Step Name (PENDING)")
|
187
187
|
@cucumber.after_steps(@step)
|
188
188
|
end
|
189
189
|
|
190
190
|
it "should alter the name of a test case that is undefined to include '(PENDING)'" do
|
191
|
-
@step.stub
|
191
|
+
@step.stub(:status).and_return(:undefined)
|
192
192
|
@test_case.should_receive(:name=).with("Step Name (PENDING)")
|
193
193
|
@cucumber.after_steps(@step)
|
194
194
|
end
|
195
195
|
|
196
196
|
it "should alter the name of a test case that was skipped to include '(SKIPPED)'" do
|
197
|
-
@step.stub
|
197
|
+
@step.stub(:status).and_return(:skipped)
|
198
198
|
@test_case.should_receive(:name=).with("Step Name (SKIPPED)")
|
199
199
|
@cucumber.after_steps(@step)
|
200
200
|
end
|
@@ -202,15 +202,15 @@ describe "The Cucumber reporter" do
|
|
202
202
|
|
203
203
|
describe "that fails" do
|
204
204
|
before(:each) do
|
205
|
-
@step.stub
|
205
|
+
@step.stub(:status).and_return(:failed)
|
206
206
|
|
207
207
|
@failures = []
|
208
|
-
@test_case.stub
|
208
|
+
@test_case.stub(:failures).and_return(@failures)
|
209
209
|
|
210
210
|
@cucumber.before_steps(@step)
|
211
211
|
|
212
|
-
@cucumber_failure =
|
213
|
-
CI::Reporter::CucumberFailure.stub
|
212
|
+
@cucumber_failure = double("cucumber_failure")
|
213
|
+
CI::Reporter::CucumberFailure.stub(:new).and_return(@cucumber_failure)
|
214
214
|
end
|
215
215
|
|
216
216
|
it "should create a new cucumber failure with that step" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2006-
|
1
|
+
# Copyright (c) 2006-2013 Nick Sieger <nicksieger@gmail.com>
|
2
2
|
# See the file LICENSE.txt included with the distribution for
|
3
3
|
# software license details.
|
4
4
|
|
@@ -7,6 +7,7 @@ require File.dirname(__FILE__) + "/../../spec_helper.rb"
|
|
7
7
|
describe "The ReportManager" do
|
8
8
|
before(:each) do
|
9
9
|
@reports_dir = REPORTS_DIR
|
10
|
+
ENV.delete 'MAX_FILENAME_SIZE'
|
10
11
|
end
|
11
12
|
|
12
13
|
after(:each) do
|
@@ -28,7 +29,7 @@ describe "The ReportManager" do
|
|
28
29
|
|
29
30
|
it "should write reports based on name and xml content of a test suite" do
|
30
31
|
reporter = CI::Reporter::ReportManager.new("spec")
|
31
|
-
suite =
|
32
|
+
suite = double("test suite")
|
32
33
|
suite.should_receive(:name).and_return("some test suite name")
|
33
34
|
suite.should_receive(:to_xml).and_return("<xml></xml>")
|
34
35
|
reporter.write_report(suite)
|
@@ -39,13 +40,27 @@ describe "The ReportManager" do
|
|
39
40
|
|
40
41
|
it "should shorten extremely long report filenames" do
|
41
42
|
reporter = CI::Reporter::ReportManager.new("spec")
|
42
|
-
suite =
|
43
|
+
suite = double("test suite")
|
43
44
|
very_long_name = "some test suite name that goes on and on and on and on and on and on and does not look like it will end any time soon and just when you think it is almost over it just continues to go on and on and on and on and on until it is almost over but wait there is more and then el fin"
|
44
45
|
suite.should_receive(:name).and_return(very_long_name)
|
45
46
|
suite.should_receive(:to_xml).and_return("<xml></xml>")
|
46
47
|
reporter.write_report(suite)
|
47
48
|
filename = "#{REPORTS_DIR}/SPEC-#{very_long_name}"[0..CI::Reporter::ReportManager::MAX_FILENAME_SIZE].gsub(/\s/, '-') + ".xml"
|
48
|
-
filename.length.should
|
49
|
+
filename.length.should be <= 255
|
50
|
+
File.exist?(filename).should be_true
|
51
|
+
File.open(filename) {|f| f.read.should == "<xml></xml>"}
|
52
|
+
end
|
53
|
+
|
54
|
+
it "should shorten extremely long report filenames to custom length" do
|
55
|
+
reporter = CI::Reporter::ReportManager.new("spec")
|
56
|
+
suite = double("test suite")
|
57
|
+
very_long_name = "some test suite name that goes on and on and on and on and on and on and does not look like it will end any time soon and just when you think it is almost over it just continues to go on and on and on and on and on until it is almost over but wait there is more and then el fin"
|
58
|
+
suite.should_receive(:name).and_return(very_long_name)
|
59
|
+
suite.should_receive(:to_xml).and_return("<xml></xml>")
|
60
|
+
ENV['MAX_FILENAME_SIZE'] = '170'
|
61
|
+
reporter.write_report(suite)
|
62
|
+
filename = "#{REPORTS_DIR}/SPEC-#{very_long_name}"[0..170].gsub(/\s/, '-') + ".xml"
|
63
|
+
filename.length.should be <= 188
|
49
64
|
File.exist?(filename).should be_true
|
50
65
|
File.open(filename) {|f| f.read.should == "<xml></xml>"}
|
51
66
|
end
|
@@ -55,7 +70,7 @@ describe "The ReportManager" do
|
|
55
70
|
FileUtils.mkdir_p(File.dirname(filename))
|
56
71
|
FileUtils.touch filename
|
57
72
|
reporter = CI::Reporter::ReportManager.new("spec")
|
58
|
-
suite =
|
73
|
+
suite = double("test suite")
|
59
74
|
suite.should_receive(:name).and_return("colliding test suite name")
|
60
75
|
suite.should_receive(:to_xml).and_return("<xml></xml>")
|
61
76
|
reporter.write_report(suite)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2006-
|
1
|
+
# Copyright (c) 2006-2013 Nick Sieger <nicksieger@gmail.com>
|
2
2
|
# See the file LICENSE.txt included with the distribution for
|
3
3
|
# software license details.
|
4
4
|
|
@@ -7,17 +7,17 @@ require 'stringio'
|
|
7
7
|
|
8
8
|
describe "The RSpec reporter" do
|
9
9
|
before(:each) do
|
10
|
-
@error =
|
11
|
-
@error.stub
|
12
|
-
@error.stub
|
13
|
-
@error.stub
|
14
|
-
@report_mgr =
|
15
|
-
@options =
|
10
|
+
@error = double("error")
|
11
|
+
@error.stub(:expectation_not_met?).and_return(false)
|
12
|
+
@error.stub(:pending_fixed?).and_return(false)
|
13
|
+
@error.stub(:exception).and_return(StandardError.new)
|
14
|
+
@report_mgr = double("report manager")
|
15
|
+
@options = double("options")
|
16
16
|
@args = [@options, StringIO.new("")]
|
17
17
|
@args.shift unless defined?(::Spec) && ::Spec::VERSION::MAJOR == 1 && ::Spec::VERSION::MINOR >= 1
|
18
18
|
@fmt = CI::Reporter::RSpec.new *@args
|
19
19
|
@fmt.report_manager = @report_mgr
|
20
|
-
@formatter =
|
20
|
+
@formatter = double("formatter")
|
21
21
|
@fmt.formatter = @formatter
|
22
22
|
end
|
23
23
|
|
@@ -40,8 +40,8 @@ describe "The RSpec reporter" do
|
|
40
40
|
suite.testcases[2].name.should =~ /\(PENDING\)/
|
41
41
|
end
|
42
42
|
|
43
|
-
example_group =
|
44
|
-
example_group.stub
|
43
|
+
example_group = double "example group"
|
44
|
+
example_group.stub(:description).and_return "A context"
|
45
45
|
|
46
46
|
@formatter.should_receive(:start).with(3)
|
47
47
|
@formatter.should_receive(:example_group_started).with(example_group)
|
@@ -65,7 +65,7 @@ describe "The RSpec reporter" do
|
|
65
65
|
@fmt.example_started("should be pending")
|
66
66
|
@fmt.example_pending("A context", "should be pending", "Not Yet Implemented")
|
67
67
|
@fmt.start_dump
|
68
|
-
@fmt.dump_failure(1,
|
68
|
+
@fmt.dump_failure(1, double("failure"))
|
69
69
|
@fmt.dump_summary(0.1, 3, 1, 1)
|
70
70
|
@fmt.dump_pending
|
71
71
|
@fmt.close
|
@@ -88,10 +88,10 @@ describe "The RSpec reporter" do
|
|
88
88
|
end
|
89
89
|
|
90
90
|
it "should use the example #description method when available" do
|
91
|
-
group =
|
92
|
-
group.stub
|
93
|
-
example =
|
94
|
-
example.stub
|
91
|
+
group = double "example group"
|
92
|
+
group.stub(:description).and_return "group description"
|
93
|
+
example = double "example"
|
94
|
+
example.stub(:description).and_return "should do something"
|
95
95
|
|
96
96
|
@formatter.should_receive(:start)
|
97
97
|
@formatter.should_receive(:example_group_started).with(group)
|
@@ -111,8 +111,8 @@ describe "The RSpec reporter" do
|
|
111
111
|
end
|
112
112
|
|
113
113
|
it "should create a test suite with failure in before(:all)" do
|
114
|
-
example_group =
|
115
|
-
example_group.stub
|
114
|
+
example_group = double "example group"
|
115
|
+
example_group.stub(:description).and_return "A context"
|
116
116
|
|
117
117
|
@formatter.should_receive(:start)
|
118
118
|
@formatter.should_receive(:example_group_started).with(example_group)
|
@@ -130,12 +130,12 @@ describe "The RSpec reporter" do
|
|
130
130
|
|
131
131
|
describe 'RSpec2Failure' do
|
132
132
|
before(:each) do
|
133
|
-
@formatter =
|
133
|
+
@formatter = double "formatter"
|
134
134
|
@formatter.should_receive(:format_backtrace).and_return("backtrace")
|
135
|
-
@rspec20_example =
|
135
|
+
@rspec20_example = double('RSpec2.0 Example',
|
136
136
|
:execution_result => {:exception_encountered => StandardError.new('rspec2.0 ftw')},
|
137
137
|
:metadata => {})
|
138
|
-
@rspec22_example =
|
138
|
+
@rspec22_example = double('RSpec2.2 Example',
|
139
139
|
:execution_result => {:exception => StandardError.new('rspec2.2 ftw')},
|
140
140
|
:metadata => {})
|
141
141
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2006-
|
1
|
+
# Copyright (c) 2006-2013 Nick Sieger <nicksieger@gmail.com>
|
2
2
|
# See the file LICENSE.txt included with the distribution for
|
3
3
|
# software license details.
|
4
4
|
|
@@ -15,7 +15,7 @@ describe "A TestSuite" do
|
|
15
15
|
@suite.finish
|
16
16
|
@suite.time.should >= 0
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
it "should aggregate tests" do
|
20
20
|
@suite.start
|
21
21
|
@suite.testcases << CI::Reporter::TestCase.new("example test")
|
@@ -28,15 +28,15 @@ describe "A TestSuite" do
|
|
28
28
|
def name.to_s; "object name"; end
|
29
29
|
CI::Reporter::TestSuite.new(name).name.should == "object name"
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
it "should indicate number of failures and errors" do
|
33
|
-
failure =
|
34
|
-
failure.stub
|
35
|
-
failure.stub
|
33
|
+
failure = double("failure")
|
34
|
+
failure.stub(:failure?).and_return true
|
35
|
+
failure.stub(:error?).and_return false
|
36
36
|
|
37
|
-
error =
|
38
|
-
error.stub
|
39
|
-
error.stub
|
37
|
+
error = double("error")
|
38
|
+
error.stub(:failure?).and_return false
|
39
|
+
error.stub(:error?).and_return true
|
40
40
|
|
41
41
|
@suite.start
|
42
42
|
@suite.testcases << CI::Reporter::TestCase.new("example test")
|
@@ -72,19 +72,19 @@ describe "TestSuite xml" do
|
|
72
72
|
end
|
73
73
|
|
74
74
|
it "should contain Ant/JUnit-formatted description of entire suite" do
|
75
|
-
failure =
|
76
|
-
failure.stub
|
77
|
-
failure.stub
|
78
|
-
failure.stub
|
79
|
-
failure.stub
|
80
|
-
failure.stub
|
81
|
-
|
82
|
-
error =
|
83
|
-
error.stub
|
84
|
-
error.stub
|
85
|
-
error.stub
|
86
|
-
error.stub
|
87
|
-
error.stub
|
75
|
+
failure = double("failure")
|
76
|
+
failure.stub(:failure?).and_return true
|
77
|
+
failure.stub(:error?).and_return false
|
78
|
+
failure.stub(:name).and_return "failure"
|
79
|
+
failure.stub(:message).and_return "There was a failure"
|
80
|
+
failure.stub(:location).and_return @exception.backtrace.join("\n")
|
81
|
+
|
82
|
+
error = double("error")
|
83
|
+
error.stub(:failure?).and_return false
|
84
|
+
error.stub(:error?).and_return true
|
85
|
+
error.stub(:name).and_return "error"
|
86
|
+
error.stub(:message).and_return "There was a error"
|
87
|
+
error.stub(:location).and_return @exception.backtrace.join("\n")
|
88
88
|
|
89
89
|
@suite.start
|
90
90
|
@suite.testcases << CI::Reporter::TestCase.new("example test")
|
@@ -108,12 +108,12 @@ describe "TestSuite xml" do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
it "should contain full exception type and message in location element" do
|
111
|
-
failure =
|
112
|
-
failure.stub
|
113
|
-
failure.stub
|
114
|
-
failure.stub
|
115
|
-
failure.stub
|
116
|
-
failure.stub
|
111
|
+
failure = double("failure")
|
112
|
+
failure.stub(:failure?).and_return true
|
113
|
+
failure.stub(:error?).and_return false
|
114
|
+
failure.stub(:name).and_return "failure"
|
115
|
+
failure.stub(:message).and_return "There was a failure"
|
116
|
+
failure.stub(:location).and_return @exception.backtrace.join("\n")
|
117
117
|
|
118
118
|
@suite.start
|
119
119
|
@suite.testcases << CI::Reporter::TestCase.new("example test")
|
@@ -130,12 +130,12 @@ describe "TestSuite xml" do
|
|
130
130
|
end
|
131
131
|
|
132
132
|
it "should filter attributes properly for invalid characters" do
|
133
|
-
failure =
|
134
|
-
failure.stub
|
135
|
-
failure.stub
|
136
|
-
failure.stub
|
137
|
-
failure.stub
|
138
|
-
failure.stub
|
133
|
+
failure = double("failure")
|
134
|
+
failure.stub(:failure?).and_return true
|
135
|
+
failure.stub(:error?).and_return false
|
136
|
+
failure.stub(:name).and_return "failure"
|
137
|
+
failure.stub(:message).and_return "There was a <failure>\nReason: blah"
|
138
|
+
failure.stub(:location).and_return @exception.backtrace.join("\n")
|
139
139
|
|
140
140
|
@suite.start
|
141
141
|
@suite.testcases << CI::Reporter::TestCase.new("failure test")
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2006-
|
1
|
+
# Copyright (c) 2006-2013 Nick Sieger <nicksieger@gmail.com>
|
2
2
|
# See the file LICENSE.txt included with the distribution for
|
3
3
|
# software license details.
|
4
4
|
|
@@ -6,10 +6,10 @@ require File.dirname(__FILE__) + "/../../spec_helper.rb"
|
|
6
6
|
|
7
7
|
describe "The TestUnit reporter" do
|
8
8
|
before(:each) do
|
9
|
-
@report_mgr =
|
9
|
+
@report_mgr = double("report manager")
|
10
10
|
@testunit = CI::Reporter::TestUnit.new(nil, @report_mgr)
|
11
|
-
@result =
|
12
|
-
@result.stub
|
11
|
+
@result = double("result")
|
12
|
+
@result.stub(:assertion_count).and_return(7)
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should build suites based on adjacent tests with the same class name" do
|
@@ -32,7 +32,7 @@ describe "The TestUnit reporter" do
|
|
32
32
|
@suite.testcases.last.should_not be_failure
|
33
33
|
@suite.testcases.last.should_not be_error
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
it "should build two suites when encountering different class names" do
|
37
37
|
@suites = []
|
38
38
|
@report_mgr.should_receive(:write_report).twice.and_return {|suite| @suites << suite }
|
@@ -54,7 +54,7 @@ describe "The TestUnit reporter" do
|
|
54
54
|
@suites.last.testcases.first.name.should == "test_two"
|
55
55
|
@suites.last.testcases.first.assertions.should == 0
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
it "should record assertion counts during test run" do
|
59
59
|
@suite = nil
|
60
60
|
@report_mgr.should_receive(:write_report).and_return {|suite| @suite = suite }
|
@@ -67,7 +67,7 @@ describe "The TestUnit reporter" do
|
|
67
67
|
@suite.assertions.should == 7
|
68
68
|
@suite.testcases.last.assertions.should == 7
|
69
69
|
end
|
70
|
-
|
70
|
+
|
71
71
|
it "should add failures to testcases when encountering a fault" do
|
72
72
|
@failure = Test::Unit::Failure.new("test_one(TestCaseClass)", "somewhere:10", "it failed")
|
73
73
|
|
@@ -113,7 +113,7 @@ describe "The TestUnit reporter" do
|
|
113
113
|
@suite.testcases.last.should_not be_failure
|
114
114
|
@suite.testcases.last.should be_error
|
115
115
|
end
|
116
|
-
|
116
|
+
|
117
117
|
it "should add multiple failures to a testcase" do
|
118
118
|
@failure1 = Test::Unit::Failure.new("test_one(TestCaseClass)", "somewhere:10", "it failed")
|
119
119
|
@failure2 = Test::Unit::Failure.new("test_one(TestCaseClass)", "somewhere:12", "it failed again in teardown")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -80,17 +80,17 @@ dependencies:
|
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: 1.3.3
|
86
86
|
type: :development
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 1.3.3
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: rspec
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,17 +144,17 @@ dependencies:
|
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
147
|
-
- -
|
147
|
+
- - ! '>='
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: 0.8.7
|
150
150
|
type: :development
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
154
154
|
requirements:
|
155
|
-
- -
|
155
|
+
- - ! '>='
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
157
|
+
version: 0.8.7
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
159
|
name: hoe
|
160
160
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,7 +162,7 @@ dependencies:
|
|
162
162
|
requirements:
|
163
163
|
- - ~>
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '3.
|
165
|
+
version: '3.7'
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -170,7 +170,7 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - ~>
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '3.
|
173
|
+
version: '3.7'
|
174
174
|
description: CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows
|
175
175
|
you to generate XML reports of your test, spec and/or feature runs. The resulting
|
176
176
|
files can be read by a continuous integration system that understands Ant's JUnit
|
@@ -185,9 +185,12 @@ extra_rdoc_files:
|
|
185
185
|
- Manifest.txt
|
186
186
|
- README.rdoc
|
187
187
|
files:
|
188
|
+
- .gemtest
|
189
|
+
- .hoerc
|
190
|
+
- .rspec
|
191
|
+
- .travis.before_install.sh
|
188
192
|
- .travis.yml
|
189
193
|
- Gemfile
|
190
|
-
- Gemfile.lock
|
191
194
|
- History.txt
|
192
195
|
- LICENSE.txt
|
193
196
|
- Manifest.txt
|
@@ -197,10 +200,8 @@ files:
|
|
197
200
|
- acceptance/cucumber/step_definitions/development_steps.rb
|
198
201
|
- acceptance/minitest_example_test.rb
|
199
202
|
- acceptance/rspec_example_spec.rb
|
200
|
-
- acceptance/spinach/Gemfile
|
201
|
-
- acceptance/spinach/Gemfile.lock
|
202
203
|
- acceptance/spinach/features/spinach_example.feature
|
203
|
-
- acceptance/spinach/features/steps/
|
204
|
+
- acceptance/spinach/features/steps/example_spinach_feature.rb
|
204
205
|
- acceptance/test_unit_example_test.rb
|
205
206
|
- acceptance/verification_spec.rb
|
206
207
|
- ci_reporter.gemspec
|
@@ -234,9 +235,9 @@ files:
|
|
234
235
|
- spec/spec_helper.rb
|
235
236
|
- stub.rake
|
236
237
|
- tasks/ci_reporter.rake
|
237
|
-
- .gemtest
|
238
238
|
homepage: http://caldersphere.rubyforge.org/ci_reporter
|
239
|
-
licenses:
|
239
|
+
licenses:
|
240
|
+
- MIT
|
240
241
|
post_install_message:
|
241
242
|
rdoc_options:
|
242
243
|
- --main
|
@@ -254,7 +255,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
254
255
|
version: '0'
|
255
256
|
segments:
|
256
257
|
- 0
|
257
|
-
hash:
|
258
|
+
hash: 948369964341552642
|
258
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
259
260
|
none: false
|
260
261
|
requirements:
|
data/Gemfile.lock
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
bouncy-castle-java (1.5.0147)
|
5
|
-
builder (3.2.2)
|
6
|
-
colorize (0.5.8)
|
7
|
-
cucumber (1.1.0)
|
8
|
-
builder (>= 2.1.2)
|
9
|
-
diff-lcs (>= 1.1.2)
|
10
|
-
gherkin (~> 2.5.0)
|
11
|
-
json (>= 1.4.6)
|
12
|
-
term-ansicolor (>= 1.0.6)
|
13
|
-
diff-lcs (1.2.4)
|
14
|
-
gherkin (2.5.4)
|
15
|
-
json (>= 1.4.6)
|
16
|
-
hoe (3.6.3)
|
17
|
-
rake (>= 0.8, < 11.0)
|
18
|
-
hoe-git (1.5.0)
|
19
|
-
hoe (>= 2.2.0)
|
20
|
-
jruby-openssl (0.8.8)
|
21
|
-
bouncy-castle-java (>= 1.5.0147)
|
22
|
-
json (1.8.0)
|
23
|
-
json_pure (1.8.0)
|
24
|
-
minitest (5.0.6)
|
25
|
-
rake (10.1.0)
|
26
|
-
rcov (1.0.0)
|
27
|
-
rdoc (4.0.1)
|
28
|
-
json (~> 1.4)
|
29
|
-
rspec (2.13.0)
|
30
|
-
rspec-core (~> 2.13.0)
|
31
|
-
rspec-expectations (~> 2.13.0)
|
32
|
-
rspec-mocks (~> 2.13.0)
|
33
|
-
rspec-core (2.13.1)
|
34
|
-
rspec-expectations (2.13.0)
|
35
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
36
|
-
rspec-mocks (2.13.1)
|
37
|
-
rubyforge (2.0.4)
|
38
|
-
json_pure (>= 1.1.7)
|
39
|
-
spinach (0.1.5.4)
|
40
|
-
colorize
|
41
|
-
gherkin (= 2.5.4)
|
42
|
-
term-ansicolor (1.2.2)
|
43
|
-
tins (~> 0.8)
|
44
|
-
test-unit (2.5.5)
|
45
|
-
tins (0.8.2)
|
46
|
-
|
47
|
-
PLATFORMS
|
48
|
-
java
|
49
|
-
ruby
|
50
|
-
|
51
|
-
DEPENDENCIES
|
52
|
-
builder
|
53
|
-
cucumber
|
54
|
-
hoe
|
55
|
-
hoe-git (~> 1.5.0)
|
56
|
-
jruby-openssl
|
57
|
-
minitest
|
58
|
-
rcov
|
59
|
-
rdoc
|
60
|
-
rspec (> 2.0.0)
|
61
|
-
rubyforge
|
62
|
-
spinach (< 0.2)
|
63
|
-
test-unit (> 2.0.0)
|
data/acceptance/spinach/Gemfile
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../..
|
3
|
-
specs:
|
4
|
-
ci_reporter (1.8.4)
|
5
|
-
builder (>= 2.1.2)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
builder (3.2.2)
|
11
|
-
colorize (0.5.8)
|
12
|
-
diff-lcs (1.1.3)
|
13
|
-
gherkin (2.5.4)
|
14
|
-
json (>= 1.4.6)
|
15
|
-
json (1.8.0)
|
16
|
-
rspec (2.8.0)
|
17
|
-
rspec-core (~> 2.8.0)
|
18
|
-
rspec-expectations (~> 2.8.0)
|
19
|
-
rspec-mocks (~> 2.8.0)
|
20
|
-
rspec-core (2.8.0)
|
21
|
-
rspec-expectations (2.8.0)
|
22
|
-
diff-lcs (~> 1.1.2)
|
23
|
-
rspec-mocks (2.8.0)
|
24
|
-
spinach (0.1.5.4)
|
25
|
-
colorize
|
26
|
-
gherkin (= 2.5.4)
|
27
|
-
|
28
|
-
PLATFORMS
|
29
|
-
java
|
30
|
-
ruby
|
31
|
-
|
32
|
-
DEPENDENCIES
|
33
|
-
ci_reporter!
|
34
|
-
rspec
|
35
|
-
spinach (< 0.2)
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'rspec'
|
2
|
-
|
3
|
-
class ExampleFeature < Spinach::FeatureSteps
|
4
|
-
include RSpec::Matchers
|
5
|
-
|
6
|
-
feature 'Example feature'
|
7
|
-
|
8
|
-
Given 'that I am a conscientious developer' do
|
9
|
-
end
|
10
|
-
|
11
|
-
And 'I write cucumber features' do
|
12
|
-
end
|
13
|
-
|
14
|
-
Then 'I should see a green bar' do
|
15
|
-
end
|
16
|
-
|
17
|
-
Given 'that I am a lazy hacker' do
|
18
|
-
end
|
19
|
-
|
20
|
-
And 'I don\'t bother writing cucumber features' do
|
21
|
-
false.should be_true
|
22
|
-
end
|
23
|
-
|
24
|
-
Then 'I should be fired' do
|
25
|
-
end
|
26
|
-
|
27
|
-
Given 'that I can\'t code for peanuts' do
|
28
|
-
end
|
29
|
-
|
30
|
-
And 'I write step definitions that throw exceptions' do
|
31
|
-
raise RuntimeError, "User error!"
|
32
|
-
end
|
33
|
-
|
34
|
-
Then 'I shouldn\'t be allowed out in public' do
|
35
|
-
end
|
36
|
-
end
|