ci_reporter 1.5.1 → 1.5.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.
@@ -1,3 +1,11 @@
1
+ == 1.5.2
2
+
3
+ - Compatibility with latest RSpec (1.1.11 or so); use example
4
+ description method if available
5
+ - Remove dependency on rubygems when requiring builder (rescue
6
+ LoadError) (Jari Bakken)
7
+ - Source repository moved to github/git.caldersphere.net
8
+
1
9
  == 1.5.1
2
10
 
3
11
  - Fix silly load-path error that some had been seeing
@@ -5,33 +13,43 @@
5
13
  == 1.5
6
14
 
7
15
  - Support for RSpec 1.1.1 example groups (which broke ci_reporter 1.4)
8
- - Change internal model to delegation instead of inheritance, allowing ci_reporter to wrap different output formatters
9
- - Add 'ci:setup:rspecdoc' task to output specdoc format instead of progress
10
- - Add support for pending examples; they will be listed in the report XML as successful, but the name will have a '(PENDING)' tag appended
11
- - Support for RSpec < 0.9 removed as promised; use 1.4 if you still need to use an older version of RSpec
16
+ - Change internal model to delegation instead of inheritance, allowing
17
+ ci_reporter to wrap different output formatters
18
+ - Add 'ci:setup:rspecdoc' task to output specdoc format instead of
19
+ progress
20
+ - Add support for pending examples; they will be listed in the report
21
+ XML as successful, but the name will have a '(PENDING)' tag appended
22
+ - Support for RSpec < 0.9 removed as promised; use 1.4 if you still
23
+ need to use an older version of RSpec
12
24
 
13
25
  == 1.4
14
26
 
15
- - Test::Unit tests that fail in multiple places (setup, test method, and teardown) are now tracked (marcog)
27
+ - Test::Unit tests that fail in multiple places (setup, test method,
28
+ and teardown) are now tracked (marcog)
16
29
  - Explicit dependency requirement on Builder (>= 2.1.2)
17
- - Use of RSpec < 0.9 is now deprecated; support will probably disappear in the next version
30
+ - Use of RSpec < 0.9 is now deprecated; support will probably
31
+ disappear in the next version
18
32
 
19
33
  == 1.3.5
20
34
 
21
- - Change way we append to environment variables to appease windows (Tracker #13998, Adam Anderson)
35
+ - Change way we append to environment variables to appease windows
36
+ (Tracker #13998, Adam Anderson)
22
37
 
23
38
  == 1.3.4
24
39
 
25
- - Call #to_s on the object passed in as the test suite name; compatibility fix for RSpec
26
- trunk which passes a Spec::DSL::Description instead of a string
40
+ - Call #to_s on the object passed in as the test suite name;
41
+ compatibility fix for RSpec trunk which passes a
42
+ Spec::DSL::Description instead of a string
27
43
  - Fix broken spec due to pending feature introduced in recent RSpec
28
44
  - Fix compatibility for JRuby
29
- - Add stub.rake file as another way to wrap existing Rakefile, with note in README
45
+ - Add stub.rake file as another way to wrap existing Rakefile, with
46
+ note in README
30
47
 
31
48
  == 1.3.3
32
49
 
33
50
  - Use SPEC_OPTS instead of RSPECOPTS (Aslak Hellesøy)
34
- - Add assertions attribute to individual test cases (Tracker #11563, Andy Sipe)
51
+ - Add assertions attribute to individual test cases (Tracker #11563,
52
+ Andy Sipe)
35
53
 
36
54
  == 1.3.2
37
55
 
@@ -41,12 +59,14 @@
41
59
 
42
60
  == 1.3.1
43
61
 
44
- - Fixed to be compatible with RSpec 1.0.x (added fourth parameter to Formatter#dump_summary)
62
+ - Fixed to be compatible with RSpec 1.0.x (added fourth parameter to
63
+ Formatter#dump_summary)
45
64
 
46
65
  == 1.3
47
66
 
48
67
  - Fixed to be compatible with RSpec 0.9
49
- - Failure location text now contains both the exception message and class name (in case the type and message attributes were truncated)
68
+ - Failure location text now contains both the exception message and
69
+ class name (in case the type and message attributes were truncated)
50
70
 
51
71
  == 1.2.4
52
72
 
@@ -55,12 +75,13 @@
55
75
 
56
76
  == 1.2.3
57
77
 
58
- - Append to TESTOPTS and RSPECOPTS environment variables (Bret Pettichord) so that other apps can put values
59
- in them as well
78
+ - Append to TESTOPTS and RSPECOPTS environment variables (Bret
79
+ Pettichord) so that other apps can put values in them as well
60
80
 
61
81
  == 1.2.2
62
82
 
63
- - Responds to environment variable CI_CAPTURE: if set to "off", stdout/stderr capture will be disabled.
83
+ - Responds to environment variable CI_CAPTURE: if set to "off",
84
+ stdout/stderr capture will be disabled.
64
85
 
65
86
  == 1.2.1
66
87
 
@@ -68,12 +89,18 @@
68
89
 
69
90
  == 1.2
70
91
 
71
- - Capture standard output and standard error during each individual test suite and include in the XML file in system-out and system-err elements, respectively (Tracker#9054[http://rubyforge.org/tracker/index.php?func=detail&aid=9054&group_id=2857&atid=11007])
92
+ - Capture standard output and standard error during each individual
93
+ test suite and include in the XML file in system-out and system-err
94
+ elements, respectively
95
+ (Tracker#9054[http://rubyforge.org/tracker/index.php?func=detail&aid=9054&group_id=2857&atid=11007])
72
96
 
73
97
  == 1.1
74
98
 
75
- - Add +assertions+ attribute to the +testsuite+ element that will contain per-suite assertion counts when used with Test::Unit. Not useful with applications that read Ant/JUnit XML, but custom applications may wish to access it.
99
+ - Add +assertions+ attribute to the +testsuite+ element that will
100
+ contain per-suite assertion counts when used with Test::Unit. Not
101
+ useful with applications that read Ant/JUnit XML, but custom
102
+ applications may wish to access it.
76
103
 
77
104
  == 1.0
78
105
 
79
- - Initial Release.
106
+ - Initial Release.
data/README.txt CHANGED
@@ -54,10 +54,13 @@ There's a bit of a chicken and egg problem because rubygems needs to be loaded b
54
54
 
55
55
  == Source
56
56
 
57
- CI::Reporter source is not currently located in Rubyforge's SVN. To get the source:
57
+ You can get the CI::Reporter source using Git, in any of the following ways:
58
58
 
59
- svn co http://svn.caldersphere.net/svn/main/rubyforge/ci_reporter/trunk ci_reporter
59
+ git clone http://git.caldersphere.net/ci_reporter.git
60
+ git clone git://github.com/nicksieger/ci_reporter.git
61
+
62
+ You can also download a tarball of the latest CI::Reporter source at http://github.com/nicksieger/ci_reporter/tree/master.
60
63
 
61
64
  == License
62
65
 
63
- 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>.
66
+ 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>.
@@ -1,4 +1,4 @@
1
- # (c) Copyright 2006-2007 Nick Sieger <nicksieger@gmail.com>
1
+ # (c) Copyright 2006-2008 Nick Sieger <nicksieger@gmail.com>
2
2
  # See the file LICENSE.txt included with the distribution for
3
3
  # software license details.
4
4
 
@@ -65,6 +65,7 @@ module CI
65
65
 
66
66
  def example_started(name)
67
67
  @formatter.example_started(name)
68
+ name = name.description if name.respond_to?(:description)
68
69
  spec = TestCase.new name
69
70
  @suite.testcases << spec
70
71
  spec.start
@@ -131,4 +132,4 @@ module CI
131
132
  end
132
133
  end
133
134
  end
134
- end
135
+ end
@@ -65,8 +65,12 @@ module CI
65
65
 
66
66
  # Creates the xml builder instance used to create the report xml document.
67
67
  def create_builder
68
- require 'rubygems'
69
- gem 'builder'
68
+ begin
69
+ require 'rubygems'
70
+ gem 'builder'
71
+ rescue LoadError
72
+ end
73
+
70
74
  require 'builder'
71
75
  # :escape_attrs is obsolete in a newer version, but should do no harm
72
76
  Builder::XmlMarkup.new(:indent => 2, :escape_attrs => true)
@@ -1,5 +1,5 @@
1
1
  module CI
2
2
  module Reporter
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
5
- end
5
+ end
@@ -1,4 +1,4 @@
1
- # (c) Copyright 2006-2007 Nick Sieger <nicksieger@gmail.com>
1
+ # (c) Copyright 2006-2008 Nick Sieger <nicksieger@gmail.com>
2
2
  # See the file LICENSE.txt included with the distribution for
3
3
  # software license details.
4
4
 
@@ -83,4 +83,26 @@ describe "The RSpec reporter" do
83
83
  @fmt.example_passed("should pass")
84
84
  @fmt.dump_summary(0.1, 1, 0, 0)
85
85
  end
86
- end
86
+
87
+ it "should use the example #description method when available" do
88
+ group = mock "example group"
89
+ group.stub!(:description).and_return "group description"
90
+ example = mock "example"
91
+ example.stub!(:description).and_return "should do something"
92
+
93
+ @formatter.should_receive(:start)
94
+ @formatter.should_receive(:add_example_group).with(group)
95
+ @formatter.should_receive(:example_started).with(example).once
96
+ @formatter.should_receive(:example_passed).once
97
+ @formatter.should_receive(:dump_summary)
98
+ @report_mgr.should_receive(:write_report).and_return do |suite|
99
+ suite.testcases.last.name.should == "should do something"
100
+ end
101
+
102
+ @fmt.start(2)
103
+ @fmt.add_example_group(group)
104
+ @fmt.example_started(example)
105
+ @fmt.example_passed(example)
106
+ @fmt.dump_summary(0.1, 1, 0, 0)
107
+ end
108
+ end
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.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-06 00:00:00 -08:00
12
+ date: 2008-11-30 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  requirements: []
81
82
 
82
83
  rubyforge_project: caldersphere
83
- rubygems_version: 1.0.1
84
+ rubygems_version: 1.3.1
84
85
  signing_key:
85
86
  specification_version: 2
86
87
  summary: CI::Reporter allows you to generate reams of XML for use with continuous integration systems.