minitap 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.ruby CHANGED
@@ -27,13 +27,13 @@ load_path:
27
27
  - lib
28
28
  extra: {}
29
29
  name: minitap
30
- title: TAP-Y/J for MiniTest
31
- date: '2011-10-06'
30
+ title: MiniTap
31
+ date: '2011-10-07'
32
32
  alternatives: []
33
- version: 0.1.0
33
+ version: 0.2.0
34
34
  revision: 0
35
35
  source:
36
36
  - ruby.yml
37
- summary: MiniTest TAP-Y/J reporter
37
+ summary: TAP-Y/J reporters for MiniTest
38
38
  description: MiniTap provides a custom MiniTest reporter that outs TAP-Y or TAP-J
39
39
  formatted output.
@@ -1,5 +1,17 @@
1
1
  = RELEASE HISTORY
2
2
 
3
+
4
+ == 0.2.0 / 2011-10-07
5
+
6
+ This release adjusts how the customer reporter classes
7
+ should be used. It's actually a very minor release under
8
+ the hood.
9
+
10
+ Changes:
11
+
12
+ * Adjust usage decumentation.
13
+
14
+
3
15
  == 0.1.0 / 2011-10-06
4
16
 
5
17
  This is the first release of MiniTap, a TAP-Y/J reporter
@@ -1,6 +1,7 @@
1
1
  = MiniTap
2
2
 
3
- {Website}[http://rubyworks.github.com/minitap]
3
+ {Website}[http://rubyworks.github.com/minitap] |
4
+ {Documentation}[http://rubydoc.info/gems/minitap/frames] |
4
5
  {Development}[http://github.com/rubyworks/minitap]
5
6
 
6
7
 
@@ -16,20 +17,37 @@ TAP-Y/J formats.
16
17
 
17
18
  == Usage
18
19
 
19
- Simply require `minitest/tapy` or `minitest/tapj' when running your tests.
20
- For example if you use `ruby` on the command line:
20
+ MiniTest supports custom reporters by setting `MiniTest::Unit.reporter` to
21
+ an instance of a reporter class. In this case we want to set it to an instance
22
+ of `MiniTest::TapY` or `MiniTest::TapJ`. So in your project's test helper script
23
+ add, e.g.
21
24
 
22
- ruby -r'minitest/tapy' test_some_test.rb
25
+ require 'minitap'
26
+ MiniTest::Unit.runner = MiniTest::TapY.new
23
27
 
24
- Now to do something intersing with the outout. Make sure `tapout` is installed:
28
+ Now you may want to set this up so it is selectable. In which case use an
29
+ environment variable.
25
30
 
26
- $ gem install tapout
31
+ MiniTest::Unit.runner = \
32
+ case ENV['rpt']
33
+ when 'tapy'
34
+ MiniTest::TapY.new
35
+ when 'tapj'
36
+ MiniTest::TapJ.new
37
+ end
38
+
39
+ Then you can do, e.g.
40
+
41
+ $ rpt=tapy ruby test/some_test.rb
27
42
 
28
- Then pipe the output to the `tapout` command.
43
+ Now to do something interesting with the TAP-Y/J output, you will probably want
44
+ to install `tapout`:
45
+
46
+ $ gem install tapout
29
47
 
30
- $ ruby -r'minitest/tapy' test/some_test.rb | tapout progressbar
48
+ Then pipe the output to the `tapout` command, e.g.
31
49
 
32
- Adjust your Rake task or other means of running tests to suite.
50
+ $ rpt=tapy ruby test/some_test.rb | tapout progressbar
33
51
 
34
52
 
35
53
  == Copying
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-06 00:00:00.000000000 Z
12
+ date: 2011-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tapout
16
- requirement: &12167740 !ruby/object:Gem::Requirement
16
+ requirement: &6632260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12167740
24
+ version_requirements: *6632260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: detroit
27
- requirement: &12167140 !ruby/object:Gem::Requirement
27
+ requirement: &6665180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *12167140
35
+ version_requirements: *6665180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: reap
38
- requirement: &12166280 !ruby/object:Gem::Requirement
38
+ requirement: &6770520 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *12166280
46
+ version_requirements: *6770520
47
47
  description: MiniTap provides a custom MiniTest reporter that outs TAP-Y or TAP-J
48
48
  formatted output.
49
49
  email:
@@ -57,8 +57,6 @@ extra_rdoc_files:
57
57
  files:
58
58
  - .ruby
59
59
  - lib/minitap.rb
60
- - lib/minitest/tapj.rb
61
- - lib/minitest/tapy.rb
62
60
  - HISTORY.rdoc
63
61
  - README.rdoc
64
62
  - COPYING.rdoc
@@ -85,5 +83,5 @@ rubyforge_project:
85
83
  rubygems_version: 1.8.5
86
84
  signing_key:
87
85
  specification_version: 3
88
- summary: MiniTest TAP-Y/J reporter
86
+ summary: TAP-Y/J reporters for MiniTest
89
87
  test_files: []
@@ -1,4 +0,0 @@
1
- require 'minitap'
2
-
3
- MiniTest::Unit.runner = MiniTest::TapJ.new
4
-
@@ -1,3 +0,0 @@
1
- require 'minitap'
2
-
3
- MiniTest::Unit.runner = MiniTest::TapY.new