test-unit-minitest 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +56 -0
- data/README.md +29 -0
- data/bin/testrb +3 -0
- data/lib/test/unit.rb +876 -0
- data/lib/test/unit/assertions.rb +403 -0
- data/lib/test/unit/parallel.rb +189 -0
- data/lib/test/unit/testcase.rb +34 -0
- metadata +70 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'test/unit/assertions'
|
2
|
+
|
3
|
+
module Test
|
4
|
+
module Unit
|
5
|
+
# remove silly TestCase class
|
6
|
+
remove_const(:TestCase) if defined?(self::TestCase)
|
7
|
+
|
8
|
+
class TestCase < MiniTest::Unit::TestCase # :nodoc: all
|
9
|
+
include Assertions
|
10
|
+
|
11
|
+
def on_parallel_worker?
|
12
|
+
false
|
13
|
+
end
|
14
|
+
|
15
|
+
def run runner
|
16
|
+
@options = runner.options
|
17
|
+
super runner
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.test_order
|
21
|
+
:sorted
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.method_added(name)
|
25
|
+
return unless name.to_s.start_with?("test_")
|
26
|
+
@test_methods ||= {}
|
27
|
+
if @test_methods[name]
|
28
|
+
warn "test/unit warning: method #{ self }##{ name } is redefined"
|
29
|
+
end
|
30
|
+
@test_methods[name] = true
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: test-unit-minitest
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shota Fukumori
|
8
|
+
- Johannes Barre
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: minitest
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '4.7'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '4.7'
|
28
|
+
description: This library implements test/unit compatible API on minitest. It was
|
29
|
+
included in Ruby until 2.1The test/unit means that test/unit which was bundled with
|
30
|
+
Ruby 1.8.
|
31
|
+
email:
|
32
|
+
- sorah@tubusu.net
|
33
|
+
- igel@igels.net
|
34
|
+
executables:
|
35
|
+
- testrb
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- README.md
|
40
|
+
- LICENSE
|
41
|
+
- lib/test/unit/assertions.rb
|
42
|
+
- lib/test/unit/parallel.rb
|
43
|
+
- lib/test/unit/testcase.rb
|
44
|
+
- lib/test/unit.rb
|
45
|
+
- bin/testrb
|
46
|
+
homepage: https://github.com/iGEL/test-unit-minitest
|
47
|
+
licenses:
|
48
|
+
- Same as Ruby
|
49
|
+
metadata: {}
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options: []
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '2.2'
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 2.0.14
|
67
|
+
signing_key:
|
68
|
+
specification_version: 4
|
69
|
+
summary: test/unit compatible API testing framework
|
70
|
+
test_files: []
|