ci_reporter 1.2.1 → 1.2.2
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.
- data/History.txt +4 -0
- data/Manifest.txt +5 -5
- data/README.txt +5 -0
- data/Rakefile +1 -1
- data/lib/ci/reporter/test_suite.rb +6 -4
- metadata +7 -7
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -4,18 +4,18 @@ README.txt
|
|
4
4
|
LICENSE.txt
|
5
5
|
Rakefile
|
6
6
|
lib/ci/reporter/core.rb
|
7
|
-
lib/ci/reporter/report_manager.rb
|
8
|
-
lib/ci/reporter/rspec.rb
|
9
|
-
lib/ci/reporter/test_suite.rb
|
10
|
-
lib/ci/reporter/test_unit.rb
|
11
7
|
lib/ci/reporter/rake/rspec.rb
|
12
8
|
lib/ci/reporter/rake/rspec_loader.rb
|
13
9
|
lib/ci/reporter/rake/test_unit.rb
|
14
10
|
lib/ci/reporter/rake/test_unit_loader.rb
|
15
|
-
|
11
|
+
lib/ci/reporter/report_manager.rb
|
12
|
+
lib/ci/reporter/rspec.rb
|
13
|
+
lib/ci/reporter/test_suite.rb
|
14
|
+
lib/ci/reporter/test_unit.rb
|
16
15
|
spec/ci/reporter/output_capture_spec.rb
|
17
16
|
spec/ci/reporter/report_manager_spec.rb
|
18
17
|
spec/ci/reporter/rspec_spec.rb
|
19
18
|
spec/ci/reporter/test_suite_spec.rb
|
20
19
|
spec/ci/reporter/test_unit_spec.rb
|
20
|
+
spec/spec_helper.rb
|
21
21
|
tasks/ci_reporter.rake
|
data/README.txt
CHANGED
@@ -42,6 +42,11 @@ If for some reason you can't use the above technique to inject CI::Reporter (e.g
|
|
42
42
|
|
43
43
|
There's a bit of a chicken and egg problem because rubygems needs to be loaded before you can require any CI::Reporter files. If you cringe hard-coding a full path to a specific version of the gem, you can also copy the +rspec_loader+ file into your project and require it directly -- the contents are version-agnostic and are not likely to change in future releases.
|
44
44
|
|
45
|
+
== Environment Variables
|
46
|
+
|
47
|
+
* +CI_REPORTS+: if set, points to a directory where report files will be written.
|
48
|
+
* +CI_CAPTURE+: if set to value "off", stdout/stderr capture will be disabled.
|
49
|
+
|
45
50
|
== License
|
46
51
|
|
47
52
|
This software is released under an MIT license. For details, see the LICENSE.txt file included with the distribution. The software is copyright (c) 2006-2007 Nick Sieger <nicksieger@gmail.com>.
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'hoe'
|
|
4
4
|
MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt", "Rakefile",
|
5
5
|
"lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
|
6
6
|
|
7
|
-
Hoe.new("ci_reporter", "1.2.
|
7
|
+
Hoe.new("ci_reporter", "1.2.2") do |p|
|
8
8
|
p.rubyforge_name = "caldersphere"
|
9
9
|
p.url = "http://caldersphere.rubyforge.org/ci_reporter"
|
10
10
|
p.author = "Nick Sieger"
|
@@ -47,8 +47,10 @@ module CI
|
|
47
47
|
# Starts timing the test suite.
|
48
48
|
def start
|
49
49
|
@start = Time.now
|
50
|
-
|
51
|
-
|
50
|
+
unless ENV['CI_CAPTURE'] == "off"
|
51
|
+
@capture_out = OutputCapture.new($stdout) {|io| $stdout = io }
|
52
|
+
@capture_err = OutputCapture.new($stderr) {|io| $stderr = io }
|
53
|
+
end
|
52
54
|
end
|
53
55
|
|
54
56
|
# Finishes timing the test suite.
|
@@ -57,8 +59,8 @@ module CI
|
|
57
59
|
self.time = Time.now - @start
|
58
60
|
self.failures = testcases.select {|tc| tc.failure? }.size
|
59
61
|
self.errors = testcases.select {|tc| tc.error? }.size
|
60
|
-
self.stdout = @capture_out.finish
|
61
|
-
self.stderr = @capture_err.finish
|
62
|
+
self.stdout = @capture_out.finish if @capture_out
|
63
|
+
self.stderr = @capture_err.finish if @capture_err
|
62
64
|
end
|
63
65
|
|
64
66
|
# Creates the xml builder instance used to create the report xml document.
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ci_reporter
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.2.
|
7
|
-
date: 2007-03
|
6
|
+
version: 1.2.2
|
7
|
+
date: 2007-04-03 00:00:00 -05:00
|
8
8
|
summary: CI::Reporter allows you to generate reams of XML for use with continuous integration systems.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -35,20 +35,20 @@ files:
|
|
35
35
|
- LICENSE.txt
|
36
36
|
- Rakefile
|
37
37
|
- lib/ci/reporter/core.rb
|
38
|
-
- lib/ci/reporter/report_manager.rb
|
39
|
-
- lib/ci/reporter/rspec.rb
|
40
|
-
- lib/ci/reporter/test_suite.rb
|
41
|
-
- lib/ci/reporter/test_unit.rb
|
42
38
|
- lib/ci/reporter/rake/rspec.rb
|
43
39
|
- lib/ci/reporter/rake/rspec_loader.rb
|
44
40
|
- lib/ci/reporter/rake/test_unit.rb
|
45
41
|
- lib/ci/reporter/rake/test_unit_loader.rb
|
46
|
-
-
|
42
|
+
- lib/ci/reporter/report_manager.rb
|
43
|
+
- lib/ci/reporter/rspec.rb
|
44
|
+
- lib/ci/reporter/test_suite.rb
|
45
|
+
- lib/ci/reporter/test_unit.rb
|
47
46
|
- spec/ci/reporter/output_capture_spec.rb
|
48
47
|
- spec/ci/reporter/report_manager_spec.rb
|
49
48
|
- spec/ci/reporter/rspec_spec.rb
|
50
49
|
- spec/ci/reporter/test_suite_spec.rb
|
51
50
|
- spec/ci/reporter/test_unit_spec.rb
|
51
|
+
- spec/spec_helper.rb
|
52
52
|
- tasks/ci_reporter.rake
|
53
53
|
test_files:
|
54
54
|
- spec/ci/reporter/output_capture_spec.rb
|