ci_reporter 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/ci/reporter/test_suite.rb +2 -2
- data/lib/ci/reporter/version.rb +1 -1
- data/spec/ci/reporter/test_suite_spec.rb +9 -0
- metadata +2 -2
data/History.txt
CHANGED
@@ -86,10 +86,10 @@ module CI
|
|
86
86
|
tc.to_xml(builder)
|
87
87
|
end
|
88
88
|
builder.tag! "system-out" do
|
89
|
-
builder.text!
|
89
|
+
builder.text!(self.stdout || '' )
|
90
90
|
end
|
91
91
|
builder.tag! "system-err" do
|
92
|
-
builder.text!
|
92
|
+
builder.text!(self.stderr || '' )
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
data/lib/ci/reporter/version.rb
CHANGED
@@ -53,6 +53,7 @@ end
|
|
53
53
|
|
54
54
|
describe "TestSuite xml" do
|
55
55
|
before(:each) do
|
56
|
+
ENV['CI_CAPTURE'] = nil
|
56
57
|
@suite = CI::Reporter::TestSuite.new("example suite")
|
57
58
|
@suite.assertions = 11
|
58
59
|
begin
|
@@ -62,6 +63,14 @@ describe "TestSuite xml" do
|
|
62
63
|
end
|
63
64
|
end
|
64
65
|
|
66
|
+
it "should render successfully with CI_CAPTURE off" do
|
67
|
+
ENV['CI_CAPTURE'] = 'off'
|
68
|
+
@suite.start
|
69
|
+
@suite.testcases << CI::Reporter::TestCase.new("example test")
|
70
|
+
@suite.finish
|
71
|
+
xml = @suite.to_xml
|
72
|
+
end
|
73
|
+
|
65
74
|
it "should contain Ant/JUnit-formatted description of entire suite" do
|
66
75
|
failure = mock("failure")
|
67
76
|
failure.stub!(:failure?).and_return true
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ci_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.6.
|
5
|
+
version: 1.6.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Sieger
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-12-
|
13
|
+
date: 2011-12-15 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: builder
|