multi_test 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/multi_test.rb +9 -0
- data/multi_test.gemspec +2 -2
- data/test/all +3 -13
- data/test/gemfiles/activesupport-4.0.0/.scenarios.swn +0 -0
- data/test/gemfiles/activesupport-4.0.0/.scenarios.swo +0 -0
- data/test/gemfiles/activesupport-4.0.0/Gemfile +3 -0
- data/test/gemfiles/activesupport-4.0.0/Gemfile.lock +22 -0
- data/test/gemfiles/activesupport-4.0.0/scenarios +2 -0
- data/{gemfiles → test/gemfiles}/minitest-5.0.1/Gemfile +0 -0
- data/test/gemfiles/minitest-5.0.1/Gemfile.lock +10 -0
- data/test/gemfiles/minitest-5.0.1/scenarios +2 -0
- data/{gemfiles → test/gemfiles}/plain-ruby/Gemfile +0 -0
- data/test/gemfiles/plain-ruby/Gemfile.lock +8 -0
- data/test/gemfiles/plain-ruby/scenarios +3 -0
- data/{gemfiles → test/gemfiles}/test-unit-2.4.8/Gemfile +0 -0
- data/test/gemfiles/test-unit-2.4.8/Gemfile.lock +10 -0
- data/test/gemfiles/test-unit-2.4.8/scenarios +3 -0
- data/{gemfiles → test/gemfiles}/test-unit-2.4.9/Gemfile +0 -0
- data/test/gemfiles/test-unit-2.4.9/Gemfile.lock +10 -0
- data/test/gemfiles/test-unit-2.4.9/scenarios +3 -0
- data/test/run +11 -1
- data/test/{bundler_require.rb → scenarios/bundler_require.rb} +1 -1
- data/test/scenarios/require_activesupport_testing_autorun.rb +4 -0
- data/test/{require_test_unit.rb → scenarios/require_test_unit.rb} +1 -1
- metadata +44 -18
- data/gemfiles/minitest-5.0.1/scenarios +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14a09855bec56c900ab884468cf4f89333657f89
|
4
|
+
data.tar.gz: 31973215930bdea7bcbca3fe806e33a15d90ea8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6607d00ed15a66e0f0601f43d64bb4cf387da08a502b304f4c7cc0673705451ff13b9f3ff5f7e9e96638875e9ac20c7c30d24a9c0d36770f623616572bb3cfe7
|
7
|
+
data.tar.gz: 909d85edc87cdb8f48bb141a607a760940f7ed7b2faa09180e40600ac9059bf9dd8f0043823578fac3da23e1aab9441f59f9c37242d3734c0783f2268f69f073
|
data/lib/multi_test.rb
CHANGED
@@ -3,5 +3,14 @@ module MultiTest
|
|
3
3
|
if defined?(Test::Unit::Runner)
|
4
4
|
Test::Unit::Runner.module_eval("@@stop_auto_run = true")
|
5
5
|
end
|
6
|
+
|
7
|
+
if defined?(Minitest)
|
8
|
+
if defined?(Minitest::Unit)
|
9
|
+
Minitest::Unit.class_eval do
|
10
|
+
def run(*)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
6
15
|
end
|
7
16
|
end
|
data/multi_test.gemspec
CHANGED
@@ -4,9 +4,9 @@ require "cucumber/platform"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'multi_test'
|
7
|
-
s.version = '0.0.
|
7
|
+
s.version = '0.0.2'
|
8
8
|
s.authors = ["Matt Wynne", "Steve Tooke"]
|
9
|
-
s.description = 'Wafter-thin gem to help
|
9
|
+
s.description = 'Wafter-thin gem to help control rogue test/unit/autorun requires'
|
10
10
|
s.summary = "multi-test-#{s.version}"
|
11
11
|
s.email = 'cukes@googlegroups.com'
|
12
12
|
s.homepage = "http://cukes.info"
|
data/test/all
CHANGED
@@ -1,24 +1,14 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
exit_status=0
|
3
|
-
gemfile_dirs=$(ls -d -- gemfiles/*)
|
3
|
+
gemfile_dirs=$(ls -d -- test/gemfiles/*)
|
4
4
|
echo $gemfile_dirs
|
5
5
|
for gemfile_dir in $gemfile_dirs
|
6
6
|
do
|
7
|
-
|
8
|
-
then
|
9
|
-
scenarios=$(cat $gemfile_dir/scenarios)
|
10
|
-
else
|
11
|
-
scenarios=$(ls test/*.rb)
|
12
|
-
fi
|
7
|
+
scenarios=$(cat $gemfile_dir/scenarios)
|
13
8
|
echo $scenarios
|
14
9
|
for scenario in $scenarios
|
15
10
|
do
|
16
|
-
|
17
|
-
echo
|
18
|
-
echo "Testing scenario $scenario with $gemfile..."
|
19
|
-
export BUNDLE_GEMFILE=$gemfile
|
20
|
-
bundle install
|
21
|
-
./test/run $gemfile_dir $scenario
|
11
|
+
./test/run $gemfile_dir test/scenarios/$scenario
|
22
12
|
if [ $? -ne 0 ]
|
23
13
|
then
|
24
14
|
exit_status=1
|
Binary file
|
Binary file
|
@@ -0,0 +1,22 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (4.0.0)
|
5
|
+
i18n (~> 0.6, >= 0.6.4)
|
6
|
+
minitest (~> 4.2)
|
7
|
+
multi_json (~> 1.3)
|
8
|
+
thread_safe (~> 0.1)
|
9
|
+
tzinfo (~> 0.3.37)
|
10
|
+
atomic (1.1.10)
|
11
|
+
i18n (0.6.4)
|
12
|
+
minitest (4.7.5)
|
13
|
+
multi_json (1.7.7)
|
14
|
+
thread_safe (0.1.0)
|
15
|
+
atomic
|
16
|
+
tzinfo (0.3.37)
|
17
|
+
|
18
|
+
PLATFORMS
|
19
|
+
ruby
|
20
|
+
|
21
|
+
DEPENDENCIES
|
22
|
+
activesupport (= 4.0.0)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/run
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
#!/bin/bash
|
2
|
-
|
2
|
+
|
3
|
+
gemfile_dir=$1
|
4
|
+
scenario=$2
|
5
|
+
gemfile="$gemfile_dir/Gemfile"
|
6
|
+
|
7
|
+
echo
|
8
|
+
echo "Testing scenario $scenario with $gemfile..."
|
9
|
+
export BUNDLE_GEMFILE=$gemfile
|
10
|
+
bundle install
|
11
|
+
result="$(bundle exec ruby -I lib $scenario)"
|
12
|
+
|
3
13
|
status=$?
|
4
14
|
if [[ $result != "" ]]; then
|
5
15
|
echo
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wynne
|
@@ -9,9 +9,9 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: Wafter-thin gem to help
|
14
|
+
description: Wafter-thin gem to help control rogue test/unit/autorun requires
|
15
15
|
email: cukes@googlegroups.com
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
@@ -21,17 +21,30 @@ files:
|
|
21
21
|
- Makefile
|
22
22
|
- README.md
|
23
23
|
- Rakefile
|
24
|
-
- gemfiles/minitest-5.0.1/Gemfile
|
25
|
-
- gemfiles/minitest-5.0.1/scenarios
|
26
|
-
- gemfiles/plain-ruby/Gemfile
|
27
|
-
- gemfiles/test-unit-2.4.8/Gemfile
|
28
|
-
- gemfiles/test-unit-2.4.9/Gemfile
|
29
24
|
- lib/multi_test.rb
|
30
25
|
- multi_test.gemspec
|
31
26
|
- test/all
|
32
|
-
- test/
|
33
|
-
- test/
|
27
|
+
- test/gemfiles/activesupport-4.0.0/.scenarios.swn
|
28
|
+
- test/gemfiles/activesupport-4.0.0/.scenarios.swo
|
29
|
+
- test/gemfiles/activesupport-4.0.0/Gemfile
|
30
|
+
- test/gemfiles/activesupport-4.0.0/Gemfile.lock
|
31
|
+
- test/gemfiles/activesupport-4.0.0/scenarios
|
32
|
+
- test/gemfiles/minitest-5.0.1/Gemfile
|
33
|
+
- test/gemfiles/minitest-5.0.1/Gemfile.lock
|
34
|
+
- test/gemfiles/minitest-5.0.1/scenarios
|
35
|
+
- test/gemfiles/plain-ruby/Gemfile
|
36
|
+
- test/gemfiles/plain-ruby/Gemfile.lock
|
37
|
+
- test/gemfiles/plain-ruby/scenarios
|
38
|
+
- test/gemfiles/test-unit-2.4.8/Gemfile
|
39
|
+
- test/gemfiles/test-unit-2.4.8/Gemfile.lock
|
40
|
+
- test/gemfiles/test-unit-2.4.8/scenarios
|
41
|
+
- test/gemfiles/test-unit-2.4.9/Gemfile
|
42
|
+
- test/gemfiles/test-unit-2.4.9/Gemfile.lock
|
43
|
+
- test/gemfiles/test-unit-2.4.9/scenarios
|
34
44
|
- test/run
|
45
|
+
- test/scenarios/bundler_require.rb
|
46
|
+
- test/scenarios/require_activesupport_testing_autorun.rb
|
47
|
+
- test/scenarios/require_test_unit.rb
|
35
48
|
homepage: http://cukes.info
|
36
49
|
licenses: []
|
37
50
|
metadata: {}
|
@@ -55,15 +68,28 @@ rubyforge_project:
|
|
55
68
|
rubygems_version: 2.0.0
|
56
69
|
signing_key:
|
57
70
|
specification_version: 4
|
58
|
-
summary: multi-test-0.0.
|
71
|
+
summary: multi-test-0.0.2
|
59
72
|
test_files:
|
60
|
-
- gemfiles/minitest-5.0.1/Gemfile
|
61
|
-
- gemfiles/minitest-5.0.1/scenarios
|
62
|
-
- gemfiles/plain-ruby/Gemfile
|
63
|
-
- gemfiles/test-unit-2.4.8/Gemfile
|
64
|
-
- gemfiles/test-unit-2.4.9/Gemfile
|
65
73
|
- test/all
|
66
|
-
- test/
|
67
|
-
- test/
|
74
|
+
- test/gemfiles/activesupport-4.0.0/.scenarios.swn
|
75
|
+
- test/gemfiles/activesupport-4.0.0/.scenarios.swo
|
76
|
+
- test/gemfiles/activesupport-4.0.0/Gemfile
|
77
|
+
- test/gemfiles/activesupport-4.0.0/Gemfile.lock
|
78
|
+
- test/gemfiles/activesupport-4.0.0/scenarios
|
79
|
+
- test/gemfiles/minitest-5.0.1/Gemfile
|
80
|
+
- test/gemfiles/minitest-5.0.1/Gemfile.lock
|
81
|
+
- test/gemfiles/minitest-5.0.1/scenarios
|
82
|
+
- test/gemfiles/plain-ruby/Gemfile
|
83
|
+
- test/gemfiles/plain-ruby/Gemfile.lock
|
84
|
+
- test/gemfiles/plain-ruby/scenarios
|
85
|
+
- test/gemfiles/test-unit-2.4.8/Gemfile
|
86
|
+
- test/gemfiles/test-unit-2.4.8/Gemfile.lock
|
87
|
+
- test/gemfiles/test-unit-2.4.8/scenarios
|
88
|
+
- test/gemfiles/test-unit-2.4.9/Gemfile
|
89
|
+
- test/gemfiles/test-unit-2.4.9/Gemfile.lock
|
90
|
+
- test/gemfiles/test-unit-2.4.9/scenarios
|
68
91
|
- test/run
|
92
|
+
- test/scenarios/bundler_require.rb
|
93
|
+
- test/scenarios/require_activesupport_testing_autorun.rb
|
94
|
+
- test/scenarios/require_test_unit.rb
|
69
95
|
has_rdoc:
|
@@ -1 +0,0 @@
|
|
1
|
-
test/bundler_require.rb
|