rubytest-tap 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.index +45 -0
- data/README.md +10 -0
- data/lib/rubytest/format/tap.rb +61 -0
- data/lib/rubytest/format/tapj.rb +57 -0
- data/lib/rubytest/format/tapy.rb +62 -0
- metadata +65 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a12adc64738fbfda045076f62b86a0a274ff1f5
|
4
|
+
data.tar.gz: 52d025cfe136b8f7cab671e062b58ee96f17c96f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 79aa1a8b576b1fe174576025b8f649d49aa00561e54aa9b5d0d29d0e8b64ac03a59f48f8cf537002ebae9ec2600b0e9cfa934936cc02dc137b8cc9bce3c989c2
|
7
|
+
data.tar.gz: 516de7d3c736cb280f255c392aa62fc5fb78d3179dbf400545d40635e2e9d8bba5675f22efe4ef32a8b86856186acf7f75c24479ceff5249f9b0df742bf91e5e
|
data/.index
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
revision: 2013
|
3
|
+
type: ruby
|
4
|
+
sources:
|
5
|
+
- Indexfile
|
6
|
+
- Gemfile
|
7
|
+
authors:
|
8
|
+
- name: trans
|
9
|
+
email: transfire@gmail.com
|
10
|
+
organizations: []
|
11
|
+
requirements:
|
12
|
+
- version: '>= 0.8.0'
|
13
|
+
name: rubytest
|
14
|
+
conflicts: []
|
15
|
+
alternatives: []
|
16
|
+
resources:
|
17
|
+
- type: home
|
18
|
+
uri: http://rubyworks.github.com/rubytest-tap
|
19
|
+
label: Homepage
|
20
|
+
- type: code
|
21
|
+
uri: http://github.com/rubyworks/rubytest-tap
|
22
|
+
label: Source Code
|
23
|
+
- type: mail
|
24
|
+
uri: http://groups.google.com/group/rubyworks-mailinglist
|
25
|
+
label: Mailing List
|
26
|
+
repositories:
|
27
|
+
- name: upstream
|
28
|
+
scm: git
|
29
|
+
uri: git@github.com:rubyworks/rubytest-summary.git
|
30
|
+
categories: []
|
31
|
+
copyrights:
|
32
|
+
- holder: RubyWorks
|
33
|
+
year: '2011'
|
34
|
+
license: BSD-2-Clause
|
35
|
+
customs: []
|
36
|
+
paths:
|
37
|
+
lib:
|
38
|
+
- lib
|
39
|
+
name: rubytest-tap
|
40
|
+
title: Rubytest Tap Test Report Format
|
41
|
+
version: 0.1.0
|
42
|
+
summary: Tap and Tap-Y/J test report formats for Rubytest.
|
43
|
+
description: This is a report format plugin for Rubytest.
|
44
|
+
created: '2011-07-23'
|
45
|
+
date: '2014-07-18'
|
data/README.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module Test::Reporters
|
4
|
+
|
5
|
+
# Classic TAP Reporter
|
6
|
+
#
|
7
|
+
# This reporter conforms to v12 of TAP. It could do with some
|
8
|
+
# imporvements yet, and eventually upgraded to v13 of standard.
|
9
|
+
class Tap < Abstract
|
10
|
+
|
11
|
+
#
|
12
|
+
def begin_suite(suite)
|
13
|
+
@start_time = Time.now
|
14
|
+
@i = 0
|
15
|
+
@n = total_count(suite)
|
16
|
+
puts "1..#{@n}"
|
17
|
+
end
|
18
|
+
|
19
|
+
def begin_test(test)
|
20
|
+
@i += 1
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
def pass(test)
|
25
|
+
puts "ok #{@i} - #{test}"
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
def fail(test, exception)
|
30
|
+
puts "not ok #{@i} - #{test}"
|
31
|
+
puts " FAIL #{exception.class}"
|
32
|
+
puts " #{exception}"
|
33
|
+
puts " #{clean_backtrace(exception)[0]}"
|
34
|
+
end
|
35
|
+
|
36
|
+
#
|
37
|
+
def error(test, exception)
|
38
|
+
puts "not ok #{@i} - #{test}"
|
39
|
+
puts " ERROR #{exception.class}"
|
40
|
+
puts " #{exception}"
|
41
|
+
puts " " + clean_backtrace(exception).join("\n ")
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
def todo(test, exception)
|
46
|
+
puts "not ok #{@i} - #{test}"
|
47
|
+
puts " PENDING"
|
48
|
+
puts " #{clean_backtrace(exception)[1]}"
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
def omit(test, exception)
|
53
|
+
puts "ok #{@i} - #{test}"
|
54
|
+
puts " OMIT"
|
55
|
+
puts " #{clean_backtrace(exception)[1]}"
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module Test::Reporters
|
4
|
+
|
5
|
+
# TAP-J Reporter
|
6
|
+
#
|
7
|
+
class Tapj < AbstractHash
|
8
|
+
|
9
|
+
REVISION = 5
|
10
|
+
|
11
|
+
#
|
12
|
+
def initialize(runner)
|
13
|
+
require 'json'
|
14
|
+
super(runner)
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
def begin_suite(suite)
|
19
|
+
hash = super(suite)
|
20
|
+
hash['rev'] = REVISION
|
21
|
+
puts hash.to_json
|
22
|
+
end
|
23
|
+
|
24
|
+
#
|
25
|
+
def begin_case(test_case)
|
26
|
+
puts super(test_case).to_json
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
def pass(test) #, backtrace=nil)
|
31
|
+
puts super(test).to_json
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
def fail(test, exception)
|
36
|
+
puts super(test, exception).to_json
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
def error(test, exception)
|
41
|
+
puts super(test, exception).to_json
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
def todo(test, exception)
|
46
|
+
puts super(test, exception).to_json
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
def end_suite(suite)
|
51
|
+
puts super(suite).to_json
|
52
|
+
puts "..."
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module Test::Reporters
|
4
|
+
|
5
|
+
# TAP-Y Reporter
|
6
|
+
#
|
7
|
+
class Tapy < AbstractHash
|
8
|
+
|
9
|
+
REVISION = 5
|
10
|
+
|
11
|
+
#
|
12
|
+
def initialize(runner)
|
13
|
+
require 'json'
|
14
|
+
super(runner)
|
15
|
+
end
|
16
|
+
|
17
|
+
#
|
18
|
+
def begin_suite(suite)
|
19
|
+
hash = super(suite)
|
20
|
+
hash['rev'] = REVISION
|
21
|
+
puts hash.to_json
|
22
|
+
end
|
23
|
+
|
24
|
+
#
|
25
|
+
def begin_case(test_case)
|
26
|
+
puts super(test_case).to_yaml
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
def pass(test) #, backtrace=nil)
|
31
|
+
puts super(test).to_yaml
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
def fail(test, exception)
|
36
|
+
puts super(test, exception).to_yaml
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
def error(test, exception)
|
41
|
+
puts super(test, exception).to_yaml
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
def todo(test, exception)
|
46
|
+
puts super(test, exception).to_yaml
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
def omit(test, exception)
|
51
|
+
puts super(test, exception).to_yaml
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
def end_suite(suite)
|
56
|
+
puts super(suite).to_yaml
|
57
|
+
puts "..."
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubytest-tap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- trans
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-07-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubytest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.8.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.8.0
|
27
|
+
description: This is a report format plugin for Rubytest.
|
28
|
+
email:
|
29
|
+
- transfire@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files:
|
33
|
+
- README.md
|
34
|
+
files:
|
35
|
+
- .index
|
36
|
+
- lib/rubytest/format/tapy.rb
|
37
|
+
- lib/rubytest/format/tapj.rb
|
38
|
+
- lib/rubytest/format/tap.rb
|
39
|
+
- README.md
|
40
|
+
homepage: http://rubyworks.github.com/rubytest-tap
|
41
|
+
licenses:
|
42
|
+
- BSD-2-Clause
|
43
|
+
metadata: {}
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubyforge_project:
|
60
|
+
rubygems_version: 2.0.3
|
61
|
+
signing_key:
|
62
|
+
specification_version: 4
|
63
|
+
summary: Tap and Tap-Y/J test report formats for Rubytest.
|
64
|
+
test_files: []
|
65
|
+
has_rdoc:
|