test 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- metadata +36 -112
- data/.gemspec +0 -152
- data/.gitignore +0 -7
- data/.ruby +0 -46
- data/.test +0 -11
- data/.yardopts +0 -7
- data/Assembly +0 -46
- data/COPYING.rdoc +0 -31
- data/HISTORY.md +0 -29
- data/LICENSE.txt +0 -25
- data/MANIFEST +0 -37
- data/PROFILE +0 -31
- data/README.md +0 -110
- data/VERSION +0 -1
- data/bin/ruby-test +0 -4
- data/lib/test.rb +0 -3
- data/lib/test/autorun.rb +0 -18
- data/lib/test/cli.rb +0 -110
- data/lib/test/code_snippet.rb +0 -93
- data/lib/test/config.rb +0 -72
- data/lib/test/core_ext.rb +0 -9
- data/lib/test/core_ext/assertion.rb +0 -30
- data/lib/test/core_ext/exception.rb +0 -8
- data/lib/test/core_ext/string.rb +0 -30
- data/lib/test/rake.rb +0 -124
- data/lib/test/recorder.rb +0 -53
- data/lib/test/reporters/abstract.rb +0 -268
- data/lib/test/reporters/abstract_hash.rb +0 -224
- data/lib/test/reporters/dotprogress.rb +0 -89
- data/lib/test/reporters/html.rb +0 -155
- data/lib/test/reporters/outline.rb +0 -211
- data/lib/test/reporters/progress.rb +0 -197
- data/lib/test/reporters/summary.rb +0 -145
- data/lib/test/reporters/tap.rb +0 -61
- data/lib/test/reporters/tapj.rb +0 -53
- data/lib/test/reporters/tapy.rb +0 -53
- data/lib/test/reporters/test.rb +0 -51
- data/lib/test/runner.rb +0 -342
- data/site/assets/images/test_pattern.jpg +0 -0
- data/site/index.html +0 -77
- data/spec/01_test.md +0 -29
- data/spec/02_case.md +0 -34
- data/spec/applique/ruby-test.rb +0 -2
- data/test/basic_case.rb +0 -11
- data/try/raw_example.rb +0 -41
- data/work/NOTES.md +0 -17
metadata
CHANGED
@@ -1,134 +1,58 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: test
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
-
|
7
|
+
authors:
|
8
|
+
- Trans
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
prerelease: false
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2011-12-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rubytest
|
16
|
+
requirement: &22267820 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: detroit
|
28
|
-
prerelease: false
|
29
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
-
none: false
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: "0"
|
35
|
-
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: qed
|
39
23
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
type: :development
|
47
|
-
version_requirements: *id003
|
48
|
-
description: Ruby Test is a universal test harness for Ruby. It can handle any compliant test framework, even running tests from multiple frameworks in a single pass.
|
49
|
-
email:
|
50
|
-
- transfire@gmail.com
|
51
|
-
executables:
|
52
|
-
- ruby-test
|
24
|
+
version_requirements: *22267820
|
25
|
+
description: ! "Ruby Test is a universal test harness for Ruby. It can handle any
|
26
|
+
compliant \ntest framework, even running tests from multiple frameworks in a single
|
27
|
+
pass."
|
28
|
+
email: transfire@gmail.com
|
29
|
+
executables: []
|
53
30
|
extensions: []
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
- COPYING.rdoc
|
58
|
-
- HISTORY.md
|
59
|
-
- README.md
|
60
|
-
files:
|
61
|
-
- .gemspec
|
62
|
-
- .gitignore
|
63
|
-
- .ruby
|
64
|
-
- .test
|
65
|
-
- .yardopts
|
66
|
-
- Assembly
|
67
|
-
- COPYING.rdoc
|
68
|
-
- HISTORY.md
|
69
|
-
- LICENSE.txt
|
70
|
-
- MANIFEST
|
71
|
-
- PROFILE
|
72
|
-
- README.md
|
73
|
-
- VERSION
|
74
|
-
- bin/ruby-test
|
75
|
-
- lib/test.rb
|
76
|
-
- lib/test/autorun.rb
|
77
|
-
- lib/test/cli.rb
|
78
|
-
- lib/test/code_snippet.rb
|
79
|
-
- lib/test/config.rb
|
80
|
-
- lib/test/core_ext.rb
|
81
|
-
- lib/test/core_ext/assertion.rb
|
82
|
-
- lib/test/core_ext/exception.rb
|
83
|
-
- lib/test/core_ext/string.rb
|
84
|
-
- lib/test/rake.rb
|
85
|
-
- lib/test/recorder.rb
|
86
|
-
- lib/test/reporters/abstract.rb
|
87
|
-
- lib/test/reporters/abstract_hash.rb
|
88
|
-
- lib/test/reporters/dotprogress.rb
|
89
|
-
- lib/test/reporters/html.rb
|
90
|
-
- lib/test/reporters/outline.rb
|
91
|
-
- lib/test/reporters/progress.rb
|
92
|
-
- lib/test/reporters/summary.rb
|
93
|
-
- lib/test/reporters/tap.rb
|
94
|
-
- lib/test/reporters/tapj.rb
|
95
|
-
- lib/test/reporters/tapy.rb
|
96
|
-
- lib/test/reporters/test.rb
|
97
|
-
- lib/test/runner.rb
|
98
|
-
- site/assets/images/test_pattern.jpg
|
99
|
-
- site/index.html
|
100
|
-
- spec/01_test.md
|
101
|
-
- spec/02_case.md
|
102
|
-
- spec/applique/ruby-test.rb
|
103
|
-
- test/basic_case.rb
|
104
|
-
- try/raw_example.rb
|
105
|
-
- work/NOTES.md
|
106
|
-
homepage: http://rubyworks.github.com/test
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files: []
|
33
|
+
homepage: http://rubyworks.githuib.com/rubytest
|
107
34
|
licenses: []
|
108
|
-
|
109
35
|
post_install_message:
|
110
36
|
rdoc_options: []
|
111
|
-
|
112
|
-
require_paths:
|
37
|
+
require_paths:
|
113
38
|
- lib
|
114
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
40
|
none: false
|
116
|
-
requirements:
|
117
|
-
- -
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version:
|
120
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
46
|
none: false
|
122
|
-
requirements:
|
123
|
-
- -
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version:
|
47
|
+
requirements:
|
48
|
+
- - ! '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
126
51
|
requirements: []
|
127
|
-
|
128
52
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.8.
|
53
|
+
rubygems_version: 1.8.10
|
130
54
|
signing_key:
|
131
55
|
specification_version: 3
|
132
56
|
summary: Ruby Universal Test Harness
|
133
57
|
test_files: []
|
134
|
-
|
58
|
+
has_rdoc:
|
data/.gemspec
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require 'yaml'
|
4
|
-
|
5
|
-
Gem::Specification.new do |gemspec|
|
6
|
-
|
7
|
-
manifest = Dir.glob('manifest{,.txt)', File::FNM_CASEFOLD).first
|
8
|
-
|
9
|
-
scm = case
|
10
|
-
when File.directory?('.git')
|
11
|
-
:git
|
12
|
-
end
|
13
|
-
|
14
|
-
files = case
|
15
|
-
when manifest
|
16
|
-
File.readlines(manifest).
|
17
|
-
map{ |line| line.srtip }.
|
18
|
-
reject{ |line| line.empty? || line[0,1] == '#' }
|
19
|
-
when scm == :git
|
20
|
-
`git ls-files -z`.split("\0")
|
21
|
-
else
|
22
|
-
Dir.glob('{**/}{.*,*}') # TODO: be more specific using standard locations ?
|
23
|
-
end.select{ |path| File.file?(path) }
|
24
|
-
|
25
|
-
patterns = {
|
26
|
-
:bin_files => 'bin/*',
|
27
|
-
:lib_files => 'lib/{**/}*.rb',
|
28
|
-
:ext_files => 'ext/{**/}extconf.rb',
|
29
|
-
:doc_files => '*.{txt,rdoc,md,markdown,tt,textile}',
|
30
|
-
:test_files => '{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'
|
31
|
-
}
|
32
|
-
|
33
|
-
glob_files = lambda { |pattern|
|
34
|
-
Dir.glob(pattern).select { |path|
|
35
|
-
File.file?(path) && files.include?(path)
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
#files = glob_files[patterns[:files]]
|
40
|
-
|
41
|
-
executables = glob_files[patterns[:bin_files]].map do |path|
|
42
|
-
File.basename(path)
|
43
|
-
end
|
44
|
-
|
45
|
-
extensions = glob_files[patterns[:ext_files]].map do |path|
|
46
|
-
File.basename(path)
|
47
|
-
end
|
48
|
-
|
49
|
-
metadata = YAML.load_file('.ruby')
|
50
|
-
|
51
|
-
# build-out the gemspec
|
52
|
-
|
53
|
-
case metadata['revision']
|
54
|
-
when 0
|
55
|
-
gemspec.name = metadata['name']
|
56
|
-
gemspec.version = metadata['version']
|
57
|
-
gemspec.summary = metadata['summary']
|
58
|
-
gemspec.description = metadata['description']
|
59
|
-
|
60
|
-
metadata['authors'].each do |author|
|
61
|
-
gemspec.authors << author['name']
|
62
|
-
|
63
|
-
if author.has_key?('email')
|
64
|
-
if gemspec.email
|
65
|
-
gemspec.email << author['email']
|
66
|
-
else
|
67
|
-
gemspec.email = [author['email']]
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
gemspec.licenses = metadata['licenses']
|
73
|
-
|
74
|
-
metadata['requirements'].each do |req|
|
75
|
-
name = req['name']
|
76
|
-
version = req['version']
|
77
|
-
groups = req['groups'] || []
|
78
|
-
|
79
|
-
if md = /^(.*?)([+-~])$/.match(version)
|
80
|
-
version = case md[2]
|
81
|
-
when '+' then ">= #{$1}"
|
82
|
-
when '-' then "< #{$1}"
|
83
|
-
when '~' then "~> #{$1}"
|
84
|
-
else version
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
#development = req['development']
|
89
|
-
#if development
|
90
|
-
# # populate development dependencies
|
91
|
-
# if gemspec.respond_to?(:add_development_dependency)
|
92
|
-
# gemspec.add_development_dependency(name,*version)
|
93
|
-
# else
|
94
|
-
# gemspec.add_dependency(name,*version)
|
95
|
-
# end
|
96
|
-
#else
|
97
|
-
# # populate runtime dependencies
|
98
|
-
# if gemspec.respond_to?(:add_runtime_dependency)
|
99
|
-
# gemspec.add_runtime_dependency(name,*version)
|
100
|
-
# else
|
101
|
-
# gemspec.add_dependency(name,*version)
|
102
|
-
# end
|
103
|
-
#end
|
104
|
-
|
105
|
-
if groups.empty? or groups.include?('runtime')
|
106
|
-
# populate runtime dependencies
|
107
|
-
if gemspec.respond_to?(:add_runtime_dependency)
|
108
|
-
gemspec.add_runtime_dependency(name,*version)
|
109
|
-
else
|
110
|
-
gemspec.add_dependency(name,*version)
|
111
|
-
end
|
112
|
-
else
|
113
|
-
# populate development dependencies
|
114
|
-
if gemspec.respond_to?(:add_development_dependency)
|
115
|
-
gemspec.add_development_dependency(name,*version)
|
116
|
-
else
|
117
|
-
gemspec.add_dependency(name,*version)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
# convert external dependencies into a requirements
|
123
|
-
if metadata['external_dependencies']
|
124
|
-
##gemspec.requirements = [] unless metadata['external_dependencies'].empty?
|
125
|
-
metadata['external_dependencies'].each do |req|
|
126
|
-
gemspec.requirements << req.to_s
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
# determine homepage from resources
|
131
|
-
homepage = metadata['resources'].find{ |key, url| key =~ /^home/ }
|
132
|
-
gemspec.homepage = homepage.last if homepage
|
133
|
-
|
134
|
-
gemspec.require_paths = metadata['load_path'] || ['lib']
|
135
|
-
gemspec.post_install_message = metadata['install_message']
|
136
|
-
|
137
|
-
# RubyGems specific metadata
|
138
|
-
gemspec.files = files
|
139
|
-
gemspec.extensions = extensions
|
140
|
-
gemspec.executables = executables
|
141
|
-
|
142
|
-
if Gem::VERSION < '1.7.'
|
143
|
-
gemspec.default_executable = gemspec.executables.first
|
144
|
-
end
|
145
|
-
|
146
|
-
gemspec.test_files = glob_files[patterns[:test_files]]
|
147
|
-
|
148
|
-
unless gemspec.files.include?('.document')
|
149
|
-
gemspec.extra_rdoc_files = glob_files[patterns[:doc_files]]
|
150
|
-
end
|
151
|
-
end
|
152
|
-
end
|
data/.gitignore
DELETED
data/.ruby
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
authors:
|
3
|
-
- name: Thomas Sawyer
|
4
|
-
email: transfire@gmail.com
|
5
|
-
copyrights:
|
6
|
-
- holder: Thomas Sawyer, RubyWorks
|
7
|
-
year: "2011"
|
8
|
-
license: FreeBSD
|
9
|
-
replacements: []
|
10
|
-
|
11
|
-
conflicts: []
|
12
|
-
|
13
|
-
requirements:
|
14
|
-
- name: ansi
|
15
|
-
- name: detroit
|
16
|
-
groups:
|
17
|
-
- build
|
18
|
-
development: true
|
19
|
-
- name: qed
|
20
|
-
groups:
|
21
|
-
- test
|
22
|
-
development: true
|
23
|
-
dependencies: []
|
24
|
-
|
25
|
-
repositories:
|
26
|
-
- uri: git@github.com:rubyworks/test.git
|
27
|
-
scm: git
|
28
|
-
name: upstream
|
29
|
-
resources:
|
30
|
-
home: http://rubyworks.github.com/test
|
31
|
-
code: http://github.com/rubyworks/test
|
32
|
-
mail: http://groups.google.com/group/rubyworks-mailinglist
|
33
|
-
load_path:
|
34
|
-
- lib
|
35
|
-
extra:
|
36
|
-
manifest: MANIFEST
|
37
|
-
alternatives: []
|
38
|
-
|
39
|
-
revision: 0
|
40
|
-
name: test
|
41
|
-
title: Ruby Test
|
42
|
-
summary: Ruby Universal Test Harness
|
43
|
-
created: "2011-07-23"
|
44
|
-
description: Ruby Test is a universal test harness for Ruby. It can handle any compliant test framework, even running tests from multiple frameworks in a single pass.
|
45
|
-
version: 0.2.1
|
46
|
-
date: "2011-08-12"
|
data/.test
DELETED
data/.yardopts
DELETED
data/Assembly
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
github:
|
3
|
-
active: true
|
4
|
-
|
5
|
-
gem:
|
6
|
-
active: true
|
7
|
-
|
8
|
-
dnote:
|
9
|
-
labels: ~
|
10
|
-
output: log/NOTES.rdoc
|
11
|
-
|
12
|
-
yard:
|
13
|
-
yardopts: true
|
14
|
-
|
15
|
-
qed:
|
16
|
-
files : ~
|
17
|
-
#exclude : ~
|
18
|
-
#loadpath: ~
|
19
|
-
#requires: ~
|
20
|
-
#live : false
|
21
|
-
active : false
|
22
|
-
|
23
|
-
qedoc:
|
24
|
-
files : spec/
|
25
|
-
output: QED.rdoc
|
26
|
-
active: false
|
27
|
-
|
28
|
-
vclog:
|
29
|
-
output: log/ChangeLog.rdoc
|
30
|
-
active: false
|
31
|
-
|
32
|
-
email:
|
33
|
-
service: Email
|
34
|
-
file : ~
|
35
|
-
subject: ~
|
36
|
-
mailto :
|
37
|
-
- ruby-talk@ruby-lang.org
|
38
|
-
- rubyworks-mailinglist@googlegroups.com
|
39
|
-
from : <%= ENV['EMAIL_ACCOUNT'] %>
|
40
|
-
server : <%= ENV['EMAIL_SERVER'] %>
|
41
|
-
port : <%= ENV['EMAIL_PORT'] %>
|
42
|
-
account: <%= ENV['EMAIL_ACCOUNT'] %>
|
43
|
-
domain : <%= ENV['EMAIL_DOMAIN'] %>
|
44
|
-
login : <%= ENV['EMAIL_LOGIN'] %>
|
45
|
-
secure : <%= ENV['EMAIL_SECURE'] %>
|
46
|
-
|
data/COPYING.rdoc
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
= COPYRIGHT NOTICES
|
2
|
-
|
3
|
-
== Ruby Test
|
4
|
-
|
5
|
-
Copyright:: (c) 2011 Thomas Sawyer, RubyWorks
|
6
|
-
License:: BSD-2-Clause
|
7
|
-
Website:: http://rubyworks.github.com/ruby-test
|
8
|
-
|
9
|
-
Copyright 2011 Thomas Sawyer. All rights reserved.
|
10
|
-
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
13
|
-
|
14
|
-
1. Redistributions of source code must retain the above copyright notice,
|
15
|
-
this list of conditions and the following disclaimer.
|
16
|
-
|
17
|
-
2. Redistributions in binary form must reproduce the above copyright
|
18
|
-
notice, this list of conditions and the following disclaimer in the
|
19
|
-
documentation and/or other materials provided with the distribution.
|
20
|
-
|
21
|
-
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
22
|
-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
24
|
-
COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
25
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
26
|
-
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
27
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
28
|
-
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
29
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
30
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
31
|
-
|