tapout 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ require 'lemon'
2
+
3
+ testcase TapOut::Reporters::ProgressBar do
4
+
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.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-07 00:00:00.000000000 Z
12
+ date: 2011-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ansi
16
- requirement: &29881940 !ruby/object:Gem::Requirement
16
+ requirement: &13022480 !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: *29881940
24
+ version_requirements: *13022480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &29881400 !ruby/object:Gem::Requirement
27
+ requirement: &13021420 !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: :runtime
34
34
  prerelease: false
35
- version_requirements: *29881400
35
+ version_requirements: *13021420
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: detroit
38
- requirement: &29880900 !ruby/object:Gem::Requirement
38
+ requirement: &13020640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *29880900
46
+ version_requirements: *13020640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: qed
49
- requirement: &29880400 !ruby/object:Gem::Requirement
49
+ requirement: &13019220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *29880400
57
+ version_requirements: *13019220
58
58
  description: Tapout is a TAP consumer that can take any TAP, TAP-Y or TAP-J stream
59
59
  and output it in a variety of useful formats.
60
60
  email:
@@ -73,20 +73,30 @@ files:
73
73
  - .yardopts
74
74
  - bin/tapout
75
75
  - lib/tapout/adapters/perl.rb
76
+ - lib/tapout/core_ext.rb
76
77
  - lib/tapout/parsers/json.rb
77
78
  - lib/tapout/parsers/perl.rb
78
79
  - lib/tapout/parsers/yaml.rb
79
80
  - lib/tapout/parsers.rb
80
81
  - lib/tapout/reporters/abstract.rb
81
- - lib/tapout/reporters/breakdown.rb
82
- - lib/tapout/reporters/dotprogress.rb
83
- - lib/tapout/reporters/html.rb
84
- - lib/tapout/reporters/outline.rb
85
- - lib/tapout/reporters/progressbar.rb
86
- - lib/tapout/reporters/tap.rb
82
+ - lib/tapout/reporters/breakdown_reporter.rb
83
+ - lib/tapout/reporters/dot_reporter.rb
84
+ - lib/tapout/reporters/html_reporter.rb
85
+ - lib/tapout/reporters/outline_reporter.rb
86
+ - lib/tapout/reporters/pretty_reporter.rb
87
+ - lib/tapout/reporters/progress_reporter.rb
88
+ - lib/tapout/reporters/tap_reporter.rb
89
+ - lib/tapout/reporters/turn_reporter.rb
87
90
  - lib/tapout/reporters.rb
88
91
  - lib/tapout/version.rb
89
92
  - lib/tapout.rb
93
+ - lib/tapout.yml
94
+ - spec/applique/env.rb
95
+ - spec/perl_adapter.rdoc
96
+ - spec/reporters/applique/cli.rb
97
+ - spec/reporters/fixtures/tapy.yml
98
+ - spec/reporters/reporters.rdoc
99
+ - test/unit/test-progressbar.rb
90
100
  - HISTORY.rdoc
91
101
  - PROFILE
92
102
  - LICENSE.txt
@@ -1,93 +0,0 @@
1
- require 'tapout/reporters/abstract'
2
-
3
- require 'ansi/progressbar'
4
-
5
- module TapOut
6
-
7
- module Reporters
8
-
9
- # The progressbar report format utilises a progress bar to indicate
10
- # elapsed progress.
11
- class Progressbar < Abstract
12
-
13
- def start_suite(entry)
14
- @pbar = ::ANSI::Progressbar.new('Testing', entry['count'].to_i + 1)
15
- @pbar.style(:bar=>:green)
16
- @pbar.inc
17
- end
18
-
19
- def start_case(entry)
20
- end
21
-
22
- #def test(entry)
23
- # #@pbar.inc
24
- #end
25
-
26
- def pass(entry)
27
- @pbar.inc
28
- end
29
-
30
- #
31
- def fail(entry)
32
- @pbar.clear
33
-
34
- e = entry['exception']
35
-
36
- puts
37
- message = e['message'].strip
38
- message = message.ansi(:red)
39
- puts(message)
40
- puts "#{e['file']}:#{e['line']}"
41
- puts
42
- puts code_snippet(e)
43
- puts
44
-
45
- @pbar.style(:bar=>:red)
46
- @pbar.inc
47
- end
48
-
49
- #
50
- def err(entry) #message=nil)
51
- @pbar.clear
52
-
53
- e = entry['exception']
54
-
55
- puts
56
- message = e['message'].strip
57
- message = message.ansi(:red)
58
- puts(message)
59
- puts "#{e['file']}:#{e['line']}"
60
- puts
61
- puts code_snippet(e)
62
- puts
63
-
64
- @pbar.style(:bar=>:yellow)
65
- @pbar.inc
66
- end
67
-
68
- #
69
- def omit(entry)
70
- @pbar.inc
71
- end
72
-
73
- #
74
- def skip(entry)
75
- @pbar.inc
76
- end
77
-
78
- #def finish_case(kase)
79
- #end
80
-
81
- def finish_suite(entry)
82
- @pbar.finish
83
- #post_report(entry)
84
- puts
85
- puts tally(entry)
86
- end
87
-
88
- end
89
-
90
- end
91
-
92
- end
93
-