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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 032098e797d45f7278842d5e2756ec54f12055e2
4
- data.tar.gz: 8c09d73f2c82d71460ff1254b86595ad772a64c9
3
+ metadata.gz: 14a09855bec56c900ab884468cf4f89333657f89
4
+ data.tar.gz: 31973215930bdea7bcbca3fe806e33a15d90ea8c
5
5
  SHA512:
6
- metadata.gz: 5db5d69f68dad56340219caad252cdfcd740106489723d1b852674416e79c87f4453d4ce0a72836f3f5e705491c0029d52214bceaf0c64dde01b4da103e327b4
7
- data.tar.gz: 028057f88a5946bc507881ba1c7aaf3f1ad51ff1c6882e316f3748578bd16f97fa51233be4054be3b9e13f628e760f4aebbcc30315dff0a581127c350b0397a1
6
+ metadata.gz: 6607d00ed15a66e0f0601f43d64bb4cf387da08a502b304f4c7cc0673705451ff13b9f3ff5f7e9e96638875e9ac20c7c30d24a9c0d36770f623616572bb3cfe7
7
+ data.tar.gz: 909d85edc87cdb8f48bb141a607a760940f7ed7b2faa09180e40600ac9059bf9dd8f0043823578fac3da23e1aab9441f59f9c37242d3734c0783f2268f69f073
@@ -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
@@ -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.1'
7
+ s.version = '0.0.2'
8
8
  s.authors = ["Matt Wynne", "Steve Tooke"]
9
- s.description = 'Wafter-thin gem to help us control rogue test/unit requires'
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
- if [ -a $gemfile_dir/scenarios ]
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
- gemfile="$gemfile_dir/Gemfile"
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
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "4.0.0"
@@ -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)
@@ -0,0 +1,2 @@
1
+ require_activesupport_testing_autorun.rb
2
+
@@ -0,0 +1,10 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ minitest (5.0.1)
5
+
6
+ PLATFORMS
7
+ ruby
8
+
9
+ DEPENDENCIES
10
+ minitest (= 5.0.1)
@@ -0,0 +1,2 @@
1
+ bundler_require.rb
2
+
@@ -0,0 +1,8 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+
5
+ PLATFORMS
6
+ ruby
7
+
8
+ DEPENDENCIES
@@ -0,0 +1,3 @@
1
+ bundler_require.rb
2
+ require_test_unit.rb
3
+
@@ -0,0 +1,10 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ test-unit (2.4.8)
5
+
6
+ PLATFORMS
7
+ ruby
8
+
9
+ DEPENDENCIES
10
+ test-unit (= 2.4.8)
@@ -0,0 +1,3 @@
1
+ bundler_require.rb
2
+ require_test_unit.rb
3
+
@@ -0,0 +1,10 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ test-unit (2.4.9)
5
+
6
+ PLATFORMS
7
+ ruby
8
+
9
+ DEPENDENCIES
10
+ test-unit (= 2.4.9)
@@ -0,0 +1,3 @@
1
+ bundler_require.rb
2
+ require_test_unit.rb
3
+
data/test/run CHANGED
@@ -1,5 +1,15 @@
1
1
  #!/bin/bash
2
- result="$(bundle exec ruby -I$1 $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
@@ -2,6 +2,6 @@
2
2
  Bundler.require
3
3
 
4
4
  # Now cucumber loads
5
- require_relative "../lib/multi_test"
5
+ require "multi_test"
6
6
  MultiTest.disable_autorun
7
7
 
@@ -0,0 +1,4 @@
1
+ require 'active_support/testing/autorun'
2
+
3
+ require "multi_test"
4
+ MultiTest.disable_autorun
@@ -2,6 +2,6 @@
2
2
  require 'test/unit'
3
3
 
4
4
  # Now cucumber loads
5
- require_relative "../lib/multi_test"
5
+ require "multi_test"
6
6
  MultiTest.disable_autorun
7
7
 
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.1
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-06-03 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Wafter-thin gem to help us control rogue test/unit requires
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/bundler_require.rb
33
- - test/require_test_unit.rb
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.1
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/bundler_require.rb
67
- - test/require_test_unit.rb
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