tapout 0.2.1 → 0.2.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.
data/.ruby CHANGED
@@ -30,7 +30,7 @@ load_path:
30
30
  - lib
31
31
  extra: {}
32
32
  date: '2011-10-06'
33
- version: 0.2.1
33
+ version: 0.2.2
34
34
  alternatives: []
35
35
  revision: 0
36
36
  source:
data/HISTORY.rdoc CHANGED
@@ -1,6 +1,16 @@
1
1
  = RELEASE HISTORY
2
2
 
3
- == 0.2.1 / 2011-10-07
3
+ == 0.2.2 / 2011-10-07
4
+
5
+ Fixed incorrect tally entry in breakdown reporter.
6
+
7
+ Changes:
8
+
9
+ * Fixed incorrect tally entry in breakdown reporter.
10
+ * Add intergration specs for reporters.
11
+
12
+
13
+ == 0.2.1 / 2011-10-06
4
14
 
5
15
  A quick fix for a malformed require call in the HTML reporter,
6
16
  and a fix for indention in the legacy TAP adapter.
data/PROFILE CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: tapout
3
- version: 0.2.1
3
+ version: 0.2.2
4
4
 
5
5
  title: TapOut
6
6
  summary: Progressive TAP Harness
@@ -49,7 +49,7 @@ module TapOut
49
49
  #
50
50
  def post_report(entry)
51
51
 
52
- sums = %w{pass fail error pending}.map{ |n| entry['tally'][n] || 0 }
52
+ sums = %w{pass fail error todo}.map{ |n| entry['counts'][n] || 0 }
53
53
 
54
54
  puts ("-" * 80)
55
55
 
@@ -1,6 +1,6 @@
1
1
  module TapOut
2
2
  # Current version of TAPOUT project.
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
 
5
5
  # The current revision of the TAP-Y/J format.
6
6
  REVISION = "2"
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.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ansi
16
- requirement: &25247780 !ruby/object:Gem::Requirement
16
+ requirement: &16900880 !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: *25247780
24
+ version_requirements: *16900880
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: detroit
27
- requirement: &25247240 !ruby/object:Gem::Requirement
27
+ requirement: &16900340 !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: *25247240
35
+ version_requirements: *16900340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: qed
38
- requirement: &25246740 !ruby/object:Gem::Requirement
38
+ requirement: &16899840 !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: *25246740
46
+ version_requirements: *16899840
47
47
  description: Tapout is a TAP consumer that can take any TAP, TAP-Y or TAP-J stream
48
48
  and output it in a variety of useful formats.
49
49
  email:
@@ -76,8 +76,6 @@ files:
76
76
  - lib/tapout/reporters.rb
77
77
  - lib/tapout/version.rb
78
78
  - lib/tapout.rb
79
- - qed/applique/env.rb
80
- - qed/perl_adapter.rdoc
81
79
  - HISTORY.rdoc
82
80
  - PROFILE
83
81
  - TODO
data/qed/applique/env.rb DELETED
@@ -1,5 +0,0 @@
1
- require 'stringio'
2
-
3
- When 'Given a legacy TAP stream' do |text|
4
- @tap = text
5
- end
@@ -1,68 +0,0 @@
1
- = TAP Parser
2
-
3
- require 'tapout'
4
-
5
- Given a legacy TAP stream:
6
-
7
- 1..3
8
- ok 1 - Example A
9
- not ok 2 - Example B
10
- ---
11
- file: foo.rb
12
- line: 45
13
- description: this is that
14
- found: this
15
- wanted: that
16
- raw_test: assert_equal('that', 'this')
17
- extensions:
18
- THAC0: 16
19
- ...
20
- ok 3
21
-
22
- The PerlAdapter can convert the stream into TAP-Y.
23
-
24
- stream = StringIO.new(@tap)
25
-
26
- adapter = TapOut::PerlAdapter.new(stream)
27
-
28
- entries = adapter.to_a
29
-
30
- Once converted, there should five entries --a header and footer, two
31
- passing tests and one failing test.
32
-
33
- entries.size.assert == 5
34
-
35
- Or pipe the converted stream directly to another stream.
36
-
37
- stream = StringIO.new(@tap)
38
-
39
- adapter = TapOut::PerlAdapter.new(stream)
40
-
41
- output = ""
42
-
43
- tapy = adapter | output
44
-
45
- Given a legacy TAP stream:
46
-
47
- 1..5
48
- # test by equality
49
- ok 1 - pass-thru 1
50
- ok 2 - pass-thru 2
51
- ok 3 - pass-thru 3
52
- ok 4 - pass-thru 4
53
- ok 5 - pass-thru 5
54
- 1..5
55
-
56
- Let's see if this works.
57
-
58
- stream = StringIO.new(@tap)
59
-
60
- adapter = TapOut::PerlAdapter.new(stream)
61
-
62
- entries = adapter.to_a
63
-
64
- Once converted, there should eight entries --a header and footer, one note
65
- and five passing tests.
66
-
67
- entries.size.assert == 8
68
-