ci_reporter 1.9.3 → 2.0.0.alpha1

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +22 -0
  3. data/.travis.yml +2 -6
  4. data/Gemfile +0 -9
  5. data/History.txt +0 -4
  6. data/LICENSE.txt +23 -21
  7. data/README.md +90 -0
  8. data/Rakefile +5 -99
  9. data/ci_reporter.gemspec +23 -52
  10. data/gemfiles/.gitignore +1 -0
  11. data/lib/ci/reporter/core.rb +0 -4
  12. data/lib/ci/reporter/internal.rb +31 -0
  13. data/lib/ci/reporter/rake/utils.rb +0 -4
  14. data/lib/ci/reporter/report_manager.rb +7 -11
  15. data/lib/ci/reporter/test_suite.rb +1 -9
  16. data/lib/ci/reporter/version.rb +1 -7
  17. data/spec/ci/reporter/output_capture_spec.rb +3 -7
  18. data/spec/ci/reporter/report_manager_spec.rb +6 -10
  19. data/spec/ci/reporter/test_suite_spec.rb +0 -4
  20. data/spec/spec_helper.rb +0 -7
  21. metadata +29 -138
  22. data/.gemtest +0 -0
  23. data/.hoerc +0 -2
  24. data/.travis.before_install.sh +0 -13
  25. data/Manifest.txt +0 -50
  26. data/README.rdoc +0 -111
  27. data/acceptance/cucumber/cucumber_example.feature +0 -19
  28. data/acceptance/cucumber/step_definitions/development_steps.rb +0 -40
  29. data/acceptance/minitest_example_test.rb +0 -17
  30. data/acceptance/rspec_example_spec.rb +0 -24
  31. data/acceptance/spinach/features/spinach_example.feature +0 -24
  32. data/acceptance/spinach/features/steps/example_spinach_feature.rb +0 -34
  33. data/acceptance/test_unit_example_test.rb +0 -23
  34. data/acceptance/verification_spec.rb +0 -185
  35. data/lib/ci/reporter/cucumber.rb +0 -127
  36. data/lib/ci/reporter/minitest.rb +0 -226
  37. data/lib/ci/reporter/rake/cucumber.rb +0 -17
  38. data/lib/ci/reporter/rake/cucumber_loader.rb +0 -6
  39. data/lib/ci/reporter/rake/minitest.rb +0 -15
  40. data/lib/ci/reporter/rake/minitest_loader.rb +0 -9
  41. data/lib/ci/reporter/rake/rspec.rb +0 -31
  42. data/lib/ci/reporter/rake/rspec_loader.rb +0 -6
  43. data/lib/ci/reporter/rake/spinach.rb +0 -19
  44. data/lib/ci/reporter/rake/spinach_loader.rb +0 -5
  45. data/lib/ci/reporter/rake/test_unit.rb +0 -15
  46. data/lib/ci/reporter/rake/test_unit_loader.rb +0 -38
  47. data/lib/ci/reporter/rspec.rb +0 -220
  48. data/lib/ci/reporter/spinach.rb +0 -80
  49. data/lib/ci/reporter/test_unit.rb +0 -163
  50. data/spec/ci/reporter/cucumber_spec.rb +0 -230
  51. data/spec/ci/reporter/rake/rake_tasks_spec.rb +0 -110
  52. data/spec/ci/reporter/rspec_spec.rb +0 -156
  53. data/spec/ci/reporter/test_unit_spec.rb +0 -152
  54. data/stub.rake +0 -16
  55. data/tasks/ci_reporter.rake +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34f5a7865cd653a40cd2653f9d0b4c75133687f2
4
- data.tar.gz: 5e2c5a5eafe7c82250edad86fa5db7016b25bcae
3
+ metadata.gz: 818b7ca178f6055f90139af88c19856b921a2001
4
+ data.tar.gz: 785075435480302645e4cddddfb130aa9c5716f2
5
5
  SHA512:
6
- metadata.gz: b890b77ab076f3911848f8233fa20818d2a2151760c0f6386efded88ddf7705fc5ac9f2ee7cbf05e0abaa5c2b78d93368ee6ecb25bc8f33f68bfff7d70ede07d
7
- data.tar.gz: 1e7ea879c89329de0706a1c60b7babba94c8e6f0d6a4df2096a1848c50687e99febe4dff089fba78baff5ddf3400657c74804302069b61d4248bb69ad4dc0099
6
+ metadata.gz: a7fa510d753444985ce7a6224e374cbec231238d77aa4699ccfc4ec721724cc21e8517af4f09553c0616c7ce2af738e7825f0a4a7b4d4fda5e21813935f96137
7
+ data.tar.gz: 3f817a975671ec431d99af56c292f5c2c821fc5aaa8be906f592069be63f52a23cd1fae81947e1f60c7624eb6e5d442b7b38d065de7da6eba6327cd6dd1815b4
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
@@ -1,9 +1,5 @@
1
1
  rvm:
2
2
  - 1.9.3
3
- - 2.0.0
3
+ - 2.0
4
+ - 2.1
4
5
  - jruby
5
- branches:
6
- only:
7
- - master
8
- before_install:
9
- - ./.travis.before_install.sh
data/Gemfile CHANGED
@@ -1,12 +1,3 @@
1
- #--
2
- # Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
3
- # See the file LICENSE.txt included with the distribution for
4
- # software license details.
5
- #++
6
-
7
1
  source 'https://rubygems.org'
8
2
 
9
3
  gemspec
10
- group :development do
11
- gem 'jruby-openssl', :platform => :jruby
12
- end
@@ -1,7 +1,3 @@
1
- == 1.9.3 (10/06/14)
2
-
3
- - GH #150 include the suite name when filtering test methods (Ben Dean)
4
-
5
1
  == 1.9.2 (04/06/14)
6
2
 
7
3
  - GH #119: add timestamp attribute (Shawn Zhu)
@@ -1,21 +1,23 @@
1
- # Copyright (c) 2006-2012 Nick Sieger <nicksieger@gmail.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person
4
- # obtaining a copy of this software and associated documentation files
5
- # (the "Software"), to deal in the Software without restriction,
6
- # including without limitation the rights to use, copy, modify, merge,
7
- # publish, distribute, sublicense, and/or sell copies of the Software,
8
- # and to permit persons to whom the Software is furnished to do so,
9
- # subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18
- # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19
- # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- # SOFTWARE.
1
+ Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
2
+ Copyright (c) 2014 The CI Reporter authors
3
+
4
+ MIT License
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,90 @@
1
+ CI::Reporter is an add-on to Ruby testing frameworks like Test::Unit
2
+ or RSpec that allows you to generate XML reports of your test
3
+ runs. The resulting files can be read by a continuous integration
4
+ system that understands Ant's JUnit report XML format, thus allowing
5
+ your CI system to track test/spec successes and failures.
6
+
7
+ [![Build Status](https://travis-ci.org/nicksieger/ci_reporter.svg?branch=master)](https://travis-ci.org/nicksieger/ci_reporter)
8
+
9
+ ## Usage
10
+
11
+ CI::Reporter works with projects that use standard Rake tasks for
12
+ running tests. In this fashion, it hooks into testing frameworks using
13
+ environment variables recognized by these custom tasks to inject the
14
+ CI::Reporter code into the test run.
15
+
16
+ Each supported testing framework is provided by a separate gem:
17
+
18
+ * [Cucumber][ci-cuke]
19
+ * [Minitest][ci-mt]
20
+ * [RSpec][ci-rspec]
21
+ * [Spinach][ci-spin]
22
+ * [Test::Unit][ci-tu]
23
+
24
+ [ci-cuke]: https://github.com/ci-reporter/ci_reporter_cucumber
25
+ [ci-mt]: https://github.com/ci-reporter/ci_reporter_minitest
26
+ [ci-rspec]: https://github.com/ci-reporter/ci_reporter_rspec
27
+ [ci-spin]: https://github.com/ci-reporter/ci_reporter_spinach
28
+ [ci-tu]: https://github.com/ci-reporter/ci_reporter_test_unit
29
+
30
+ ## Jenkins setup
31
+
32
+ 1. Tick the box labelled "Publish JUnit test result report" in the job
33
+ configuration
34
+
35
+ 2. Enter "test/reports/*.xml,spec/reports/*.xml" in the "Test report
36
+ XMLs" field (adjust this to suit which tests you are running)
37
+
38
+ Report files are written, by default, to the
39
+ <code>test/reports</code>, <code>features/reports</code> or
40
+ <code>spec/reports</code> subdirectory of your project. If you wish
41
+ to customize the location, simply set the environment variable
42
+ CI_REPORTS (either in the environment, on the Rake command line, or in
43
+ your Rakefile) to the location where they should go.
44
+
45
+ ## Conditional reporting
46
+
47
+ You may not wish to always produce report files. There are two primary
48
+ ways to configure this:
49
+
50
+ ### With environment variables
51
+
52
+ Use an environment variable in your Rakefile to control if CI:Reporter
53
+ will be invoked:
54
+
55
+ ```ruby
56
+ if ENV['GENERATE_REPORTS'] == 'true'
57
+ require 'ci/reporter/rake/rspec'
58
+ task :rspec => 'ci:setup:rspec'
59
+ end
60
+ ```
61
+
62
+ You can either inject this variable in your CI or simply call `rake`
63
+ with the environment variable set:
64
+
65
+ ```
66
+ GENERATE_REPORTS=true rake rspec
67
+ ```
68
+
69
+ ### With CI-specific Rake tasks
70
+
71
+ Instead of modifying your existing Rake tasks, create new ones:
72
+
73
+ ```ruby
74
+ namespace :ci do
75
+ task :all => ['ci:setup:rspec', 'rspec']
76
+ end
77
+ ```
78
+
79
+ Then use this Rake target in CI:
80
+
81
+ ```
82
+ rake ci:all
83
+ ```
84
+
85
+ ## Environment Variables
86
+
87
+ * `CI_REPORTS`: if set, points to a directory where report files will
88
+ be written.
89
+ * `CI_CAPTURE`: if set to value "off", stdout/stderr capture will be
90
+ disabled.
data/Rakefile CHANGED
@@ -1,103 +1,9 @@
1
- #--
2
- # Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
3
- # See the file LICENSE.txt included with the distribution for
4
- # software license details.
5
- #++
6
-
7
- require 'bundler/setup'
8
-
9
- begin
10
- require 'hoe'
11
- Hoe.plugin :git
12
- require File.dirname(__FILE__) + '/lib/ci/reporter/version'
13
- hoe = Hoe.spec("ci_reporter") do |p|
14
- p.version = CI::Reporter::VERSION
15
- p.group_name = "caldersphere"
16
- p.readme_file = "README.rdoc"
17
- p.urls = ["https://github.com/nicksieger/ci_reporter"]
18
- p.author = "Nick Sieger"
19
- p.email = "nick@nicksieger.com"
20
- p.readme_file = 'README.rdoc'
21
- p.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
22
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
23
- p.description = p.paragraphs_of('README.rdoc', 0...1).join("\n\n")
24
- p.extra_rdoc_files += ["README.rdoc"]
25
- p.test_globs = ["spec/**/*_spec.rb"]
26
- p.extra_deps << [ 'builder', '>= 2.1.2' ]
27
- p.extra_dev_deps << [ 'hoe-git', '~> 1.5.0' ]
28
- p.extra_dev_deps << [ 'cucumber', '>= 1.3.3' ]
29
- p.extra_dev_deps << [ 'rspec', '> 2.0.0' ]
30
- p.extra_dev_deps << [ 'test-unit', '> 2.4.9' ]
31
- p.extra_dev_deps << [ 'minitest', '~> 2.2.0' ]
32
- p.extra_dev_deps << [ 'spinach', '>= 0.8.7' ]
33
- p.clean_globs += ["spec/reports", "acceptance/reports"]
34
- p.license 'MIT'
35
- end
36
- hoe.spec.rdoc_options += ["-SHN", "-f", "darkfish"]
37
-
38
- task :gemspec do
39
- File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
40
- end
41
- rescue LoadError
42
- puts "You really need Hoe installed to be able to package this gem"
43
- end
44
-
45
- def run_ruby_acceptance(cmd)
46
- ENV['CI_REPORTS'] ||= "acceptance/reports"
47
- if ENV['RUBYOPT']
48
- opts = ENV['RUBYOPT']
49
- ENV['RUBYOPT'] = nil
50
- else
51
- opts = "-rubygems"
52
- end
53
- begin
54
- result_proc = proc {|ok,*| puts "Failures above are expected." unless ok }
55
- ruby "-Ilib #{opts} #{cmd}", &result_proc
56
- ensure
57
- ENV['RUBYOPT'] = opts if opts != "-rubygems"
58
- ENV.delete 'CI_REPORTS'
59
- end
60
- end
61
-
62
-
63
- namespace :generate do
64
- task :test_unit do
65
- run_ruby_acceptance "-rci/reporter/rake/test_unit_loader acceptance/test_unit_example_test.rb"
66
- end
67
-
68
- task :minitest do
69
- run_ruby_acceptance "-rci/reporter/rake/minitest_loader acceptance/minitest_example_test.rb"
70
- end
71
-
72
- task :rspec do
73
- rspec = "#{Gem.loaded_specs['rspec-core'].gem_dir}/exe/rspec"
74
- run_ruby_acceptance "-S #{rspec} --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpec acceptance/rspec_example_spec.rb"
75
- end
76
-
77
- task :cucumber do
78
- cucumber = "#{Gem.loaded_specs['cucumber'].gem_dir}/bin/cucumber"
79
- run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
80
- end
81
-
82
- task :spinach do
83
- spinach = "#{Gem.loaded_specs['spinach'].gem_dir}/bin/spinach"
84
- run_ruby_acceptance "-I../../lib -rci/reporter/rake/spinach_loader -S #{spinach} -r ci_reporter -f acceptance/spinach/features"
85
- end
86
-
87
- task :clean do
88
- rm_rf "acceptance/reports"
89
- end
90
-
91
- task :all => [:clean, :test_unit, :minitest, :rspec, :cucumber, :spinach]
92
- end
93
-
94
- task :acceptance => "generate:all"
95
-
1
+ require "bundler/gem_tasks"
96
2
  require 'rspec/core/rake_task'
97
- RSpec::Core::RakeTask.new(:acceptance_spec) do |t|
98
- t.pattern = FileList['acceptance/verification_spec.rb']
3
+
4
+ RSpec::Core::RakeTask.new(:rspec) do |t|
5
+ t.pattern = FileList['spec']
99
6
  t.rspec_opts = "--color"
100
7
  end
101
- task :acceptance => :acceptance_spec
102
8
 
103
- task :default => :acceptance
9
+ task :default => :rspec
@@ -1,57 +1,28 @@
1
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ci/reporter/version'
2
5
 
3
- Gem::Specification.new do |s|
4
- s.name = "ci_reporter"
5
- s.version = "1.9.2"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ci_reporter"
8
+ spec.version = CI::Reporter::VERSION
9
+ spec.authors = ["Nick Sieger", "Jake Goulding"]
10
+ spec.email = ["nick@nicksieger.com", "jake.goulding@gmail.com"]
11
+ spec.homepage = "https://github.com/ci-reporter/ci_reporter"
12
+ spec.license = "MIT"
6
13
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Nick Sieger"]
9
- s.date = "2014-04-06"
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
- s.email = "nick@nicksieger.com"
12
- s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
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
- s.homepage = "https://github.com/nicksieger/ci_reporter"
15
- s.licenses = ["MIT"]
16
- s.rdoc_options = ["--main", "README.rdoc", "-SHN", "-f", "darkfish"]
17
- s.require_paths = ["lib"]
18
- s.rubygems_version = "1.8.23"
19
- s.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
20
- s.test_files = ["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"]
14
+ spec.summary = %q{Connects Ruby test frameworks to CI systems via JUnit reports.}
15
+ spec.description = %q{CI::Reporter is an add-on to Ruby testing frameworks that allows you to generate XML reports of your test runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report format.}
21
16
 
22
- if s.respond_to? :specification_version then
23
- s.specification_version = 3
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features|acceptance)/})
20
+ spec.require_paths = ["lib"]
21
+ spec.extra_rdoc_files = ["History.txt", "LICENSE.txt", "README.md"]
24
22
 
25
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
27
- s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
28
- s.add_development_dependency(%q<hoe-git>, ["~> 1.5.0"])
29
- s.add_development_dependency(%q<cucumber>, [">= 1.3.3"])
30
- s.add_development_dependency(%q<rspec>, ["> 2.0.0"])
31
- s.add_development_dependency(%q<test-unit>, ["> 2.4.9"])
32
- s.add_development_dependency(%q<minitest>, ["~> 2.2.0"])
33
- s.add_development_dependency(%q<spinach>, [">= 0.8.7"])
34
- s.add_development_dependency(%q<hoe>, ["~> 3.7"])
35
- else
36
- s.add_dependency(%q<builder>, [">= 2.1.2"])
37
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
38
- s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
39
- s.add_dependency(%q<cucumber>, [">= 1.3.3"])
40
- s.add_dependency(%q<rspec>, ["> 2.0.0"])
41
- s.add_dependency(%q<test-unit>, ["> 2.4.9"])
42
- s.add_dependency(%q<minitest>, ["~> 2.2.0"])
43
- s.add_dependency(%q<spinach>, [">= 0.8.7"])
44
- s.add_dependency(%q<hoe>, ["~> 3.7"])
45
- end
46
- else
47
- s.add_dependency(%q<builder>, [">= 2.1.2"])
48
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
49
- s.add_dependency(%q<hoe-git>, ["~> 1.5.0"])
50
- s.add_dependency(%q<cucumber>, [">= 1.3.3"])
51
- s.add_dependency(%q<rspec>, ["> 2.0.0"])
52
- s.add_dependency(%q<test-unit>, ["> 2.4.9"])
53
- s.add_dependency(%q<minitest>, ["~> 2.2.0"])
54
- s.add_dependency(%q<spinach>, [">= 0.8.7"])
55
- s.add_dependency(%q<hoe>, ["~> 3.7"])
56
- end
23
+ spec.add_dependency "builder", ">= 2.1.2"
24
+
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rdoc", "~> 4.0"
27
+ spec.add_development_dependency "rspec", "~> 2.0"
57
28
  end
@@ -0,0 +1 @@
1
+ Gemfile.*.lock
@@ -1,6 +1,2 @@
1
- # Copyright (c) 2006-2012 Nick Sieger <nicksieger@gmail.com>
2
- # See the file LICENSE.txt included with the distribution for
3
- # software license details.
4
-
5
1
  require 'ci/reporter/test_suite'
6
2
  require 'ci/reporter/report_manager'
@@ -0,0 +1,31 @@
1
+ module CI
2
+ module Reporter
3
+ module Internal
4
+ def run_ruby_acceptance(cmd)
5
+ ENV['CI_REPORTS'] ||= "acceptance/reports"
6
+ if ENV['RUBYOPT']
7
+ opts = ENV['RUBYOPT']
8
+ ENV['RUBYOPT'] = nil
9
+ else
10
+ opts = "-rubygems"
11
+ end
12
+ begin
13
+ result_proc = proc {|ok,*| puts "Failures above are expected." unless ok }
14
+ ruby "-Ilib #{opts} #{cmd}", &result_proc
15
+ ensure
16
+ ENV['RUBYOPT'] = opts if opts != "-rubygems"
17
+ ENV.delete 'CI_REPORTS'
18
+ end
19
+ end
20
+
21
+ def save_env(v)
22
+ ENV["PREV_#{v}"] = ENV[v]
23
+ end
24
+
25
+ def restore_env(v)
26
+ ENV[v] = ENV["PREV_#{v}"]
27
+ ENV.delete("PREV_#{v}")
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,7 +1,3 @@
1
- # Copyright (c) 2006-2012 Nick Sieger <nicksieger@gmail.com>
2
- # See the file LICENSE.txt included with the distribution for
3
- # software license details.
4
-
5
1
  module CI
6
2
  module Reporter
7
3
  def self.maybe_quote_filename(fn)