imedo-TestOutputShaper 0.0.3

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 ADDED
@@ -0,0 +1,6 @@
1
+ === 1.0.0 / 2008-06-23
2
+
3
+ * 1 major enhancement
4
+
5
+ * Birthday!
6
+
data/Manifest.txt ADDED
@@ -0,0 +1,6 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ lib/test_output_shaper.rb
6
+ test/test_test_output_shaper.rb
data/README.txt ADDED
@@ -0,0 +1,54 @@
1
+ = TestOutputShaper
2
+
3
+ * http://opensource.imedo.de/pages/show/test_output_shaper
4
+ * git clone git://github.com/imedo/test_output_shaper.git
5
+
6
+ == DESCRIPTION:
7
+
8
+ Shapes the output of Test::Unit like this:
9
+
10
+ CategoryTest ...F.F.FF.E...
11
+ ProductTest ...F..
12
+ UserTest .............
13
+
14
+ == FEATURES/PROBLEMS:
15
+
16
+ * Easy to spot problem source.
17
+ * Gives you the possibility to kill test suites that take long to run, if you see some errors right at the beginning.
18
+
19
+ == SYNOPSIS:
20
+
21
+ require 'test_output_shaper'
22
+
23
+ == REQUIREMENTS:
24
+
25
+ None. Test::Unit is ruby core.
26
+
27
+ == INSTALL:
28
+
29
+ gem install test_output_shaper
30
+
31
+ == LICENSE:
32
+
33
+ (The MIT License)
34
+
35
+ Copyright (c) 2008
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining
38
+ a copy of this software and associated documentation files (the
39
+ 'Software'), to deal in the Software without restriction, including
40
+ without limitation the rights to use, copy, modify, merge, publish,
41
+ distribute, sublicense, and/or sell copies of the Software, and to
42
+ permit persons to whom the Software is furnished to do so, subject to
43
+ the following conditions:
44
+
45
+ The above copyright notice and this permission notice shall be
46
+ included in all copies or substantial portions of the Software.
47
+
48
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
49
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'hoe'
5
+ require './lib/test_output_shaper.rb'
6
+
7
+ Hoe.new('TestOutputShaper', TestOutputShaper::VERSION) do |p|
8
+ p.developer('Christian M. Weis', 'christian.weis@imedo.de')
9
+ end
10
+
11
+ # vim: syntax=Ruby
@@ -0,0 +1,26 @@
1
+ require 'test/unit'
2
+ # TestOutputShaper Module to make the @@once workaround work.
3
+ module TestOutputShaper
4
+ @@once ||= begin # Workaround to prevent the module from being loaded more than once. Otherwise alias does evil things.
5
+ VERSION = '0.0.2'
6
+ class ::Test::Unit::TestCase
7
+ class << self
8
+ attr_accessor :identified
9
+ end
10
+
11
+ def run_with_identification(*args, &block)
12
+ self.class.identified ||= identify
13
+ run_without_identification(*args, &block)
14
+ end
15
+
16
+ alias run_without_identification run
17
+ alias run run_with_identification
18
+
19
+ def identify
20
+ print "\n#{self.class.name}\t"
21
+ true
22
+ end
23
+ end
24
+ true
25
+ end
26
+ end
File without changes
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: imedo-TestOutputShaper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Christian M. Weis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-06-25 00:00:00 -07:00
13
+ default_executable: test_output_shaper
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.5.1
23
+ version:
24
+ description: Shapes the output of Test::Unit like this:\n CategoryTest ...F.F.FF.E...\n ProductTest ...F..\n UserTest .............
25
+ email:
26
+ - christian.weis@imedo.de
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - History.txt
33
+ - Manifest.txt
34
+ - README.txt
35
+ files:
36
+ - History.txt
37
+ - Manifest.txt
38
+ - README.txt
39
+ - Rakefile
40
+ - lib/test_output_shaper.rb
41
+ - test/test_test_output_shaper.rb
42
+ has_rdoc: true
43
+ homepage: http://opensource.imedo.de/pages/show/test_output_shaper
44
+ post_install_message:
45
+ rdoc_options:
46
+ - --main
47
+ - README.txt
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ version:
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: "0"
61
+ version:
62
+ requirements: []
63
+
64
+ rubyforge_project:
65
+ rubygems_version: 1.2.0
66
+ signing_key:
67
+ specification_version: 2
68
+ summary: "Shapes the output of Test::Unit like this: CategoryTest\t...F.F.FF.E.."
69
+ test_files:
70
+ - test/test_test_output_shaper.rb