multi_test 0.0.2 → 0.0.3

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: 14a09855bec56c900ab884468cf4f89333657f89
4
- data.tar.gz: 31973215930bdea7bcbca3fe806e33a15d90ea8c
3
+ metadata.gz: 9db6c2643d6411415374ed6c059a8d22b8195e13
4
+ data.tar.gz: 6abf78c5171584dcc360ef9b612eeebf404dc563
5
5
  SHA512:
6
- metadata.gz: 6607d00ed15a66e0f0601f43d64bb4cf387da08a502b304f4c7cc0673705451ff13b9f3ff5f7e9e96638875e9ac20c7c30d24a9c0d36770f623616572bb3cfe7
7
- data.tar.gz: 909d85edc87cdb8f48bb141a607a760940f7ed7b2faa09180e40600ac9059bf9dd8f0043823578fac3da23e1aab9441f59f9c37242d3734c0783f2268f69f073
6
+ metadata.gz: aa888feea42b5d09e01d5f2a96c23d5cb0591ce5182a0645743ba3a353faa401f4291d42a10a640f115e4d23a9ec5ab5c80d4e5aaab628e0233504d26c221499
7
+ data.tar.gz: 8dd46562d8dfe258f0c043af2f496214730122568f699dc6d7b5fdede21e7691837932825a7f678f31704ca1ae9b1263e7cfe9efc6fd2d03ee7bcf07d5acd8a0
@@ -1,4 +1,7 @@
1
1
  rvm:
2
2
  - 1.9.3
3
3
  - 2.0.0
4
+ - 2.1.0
4
5
  script: make
6
+ before_install:
7
+ gem install bundler -v 1.5.1
@@ -0,0 +1,3 @@
1
+ ## [v0.0.3](https://github.com/cucumber/multi_test/compare/v0.0.2...v0.0.3)
2
+
3
+ * Fix for Rails 4.1, Minitest 5.x ([#4](https://github.com/cucumber/multi_test/pull/4) Andy Lindeman
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 The Cucumber Organisation
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -5,6 +5,18 @@ module MultiTest
5
5
  end
6
6
 
7
7
  if defined?(Minitest)
8
+ Minitest.instance_eval do
9
+ def run(*)
10
+ # propagate the exit code from cucumber or another runner
11
+ case $!
12
+ when SystemExit
13
+ $!.status
14
+ else
15
+ true
16
+ end
17
+ end
18
+ end
19
+
8
20
  if defined?(Minitest::Unit)
9
21
  Minitest::Unit.class_eval do
10
22
  def run(*)
@@ -4,11 +4,12 @@ require "cucumber/platform"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'multi_test'
7
- s.version = '0.0.2'
7
+ s.version = '0.0.3'
8
8
  s.authors = ["Matt Wynne", "Steve Tooke"]
9
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
+ s.license = 'MIT'
12
13
  s.homepage = "http://cukes.info"
13
14
 
14
15
  s.platform = Gem::Platform::RUBY
@@ -0,0 +1,7 @@
1
+ # How this gem is tested
2
+
3
+ We build a matrix of test cases from the gemfiles and scenarios directories.
4
+
5
+ The gemfiles contain each of the different gem configurations we want to test with. Then, for each gemfile, there's a scenarios file which lists the Ruby scripts from the scenarios directory that we'll run as tests in that gemfile's environment.
6
+
7
+ Success for each test case is simply that nothing was written to standard output.
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activesupport", "4.1.0.beta1"
@@ -0,0 +1,23 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (4.1.0.beta1)
5
+ i18n (~> 0.6, >= 0.6.9)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 1.1)
10
+ atomic (1.1.14)
11
+ i18n (0.6.9)
12
+ json (1.8.1)
13
+ minitest (5.2.0)
14
+ thread_safe (0.1.3)
15
+ atomic
16
+ tzinfo (1.1.0)
17
+ thread_safe (~> 0.1)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ activesupport (= 4.1.0.beta1)
@@ -0,0 +1,2 @@
1
+ require_activesupport_testing_autorun.rb
2
+
@@ -1,2 +1,3 @@
1
1
  bundler_require.rb
2
+ minitest_propagate_exit_code.rb
2
3
 
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "minitest", "5.1.0"
@@ -0,0 +1,10 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ minitest (5.1.0)
5
+
6
+ PLATFORMS
7
+ ruby
8
+
9
+ DEPENDENCIES
10
+ minitest (= 5.1.0)
@@ -0,0 +1,3 @@
1
+ bundler_require.rb
2
+ minitest_propagate_exit_code.rb
3
+
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "minitest", "5.2.0"
@@ -0,0 +1,10 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ minitest (5.2.0)
5
+
6
+ PLATFORMS
7
+ ruby
8
+
9
+ DEPENDENCIES
10
+ minitest (= 5.2.0)
@@ -0,0 +1,3 @@
1
+ bundler_require.rb
2
+ minitest_propagate_exit_code.rb
3
+
@@ -0,0 +1,9 @@
1
+ # Imagine this is your rails app
2
+ require 'minitest/autorun'
3
+
4
+ # Now cucumber loads and exits successfully
5
+ require "multi_test"
6
+ MultiTest.disable_autorun
7
+ exit 0
8
+
9
+ # Our Minitest hook should propagate that healthy status code
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wynne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-19 00:00:00.000000000 Z
12
+ date: 2014-01-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Wafter-thin gem to help control rogue test/unit/autorun requires
15
15
  email: cukes@googlegroups.com
@@ -18,20 +18,30 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - .travis.yml
21
+ - History.md
22
+ - LICENSE
21
23
  - Makefile
22
24
  - README.md
23
25
  - Rakefile
24
26
  - lib/multi_test.rb
25
27
  - multi_test.gemspec
28
+ - test/README.md
26
29
  - test/all
27
- - test/gemfiles/activesupport-4.0.0/.scenarios.swn
28
- - test/gemfiles/activesupport-4.0.0/.scenarios.swo
29
30
  - test/gemfiles/activesupport-4.0.0/Gemfile
30
31
  - test/gemfiles/activesupport-4.0.0/Gemfile.lock
31
32
  - test/gemfiles/activesupport-4.0.0/scenarios
33
+ - test/gemfiles/activesupport-4.1.0/Gemfile
34
+ - test/gemfiles/activesupport-4.1.0/Gemfile.lock
35
+ - test/gemfiles/activesupport-4.1.0/scenarios
32
36
  - test/gemfiles/minitest-5.0.1/Gemfile
33
37
  - test/gemfiles/minitest-5.0.1/Gemfile.lock
34
38
  - test/gemfiles/minitest-5.0.1/scenarios
39
+ - test/gemfiles/minitest-5.1.0/Gemfile
40
+ - test/gemfiles/minitest-5.1.0/Gemfile.lock
41
+ - test/gemfiles/minitest-5.1.0/scenarios
42
+ - test/gemfiles/minitest-5.2.0/Gemfile
43
+ - test/gemfiles/minitest-5.2.0/Gemfile.lock
44
+ - test/gemfiles/minitest-5.2.0/scenarios
35
45
  - test/gemfiles/plain-ruby/Gemfile
36
46
  - test/gemfiles/plain-ruby/Gemfile.lock
37
47
  - test/gemfiles/plain-ruby/scenarios
@@ -43,10 +53,12 @@ files:
43
53
  - test/gemfiles/test-unit-2.4.9/scenarios
44
54
  - test/run
45
55
  - test/scenarios/bundler_require.rb
56
+ - test/scenarios/minitest_propagate_exit_code.rb
46
57
  - test/scenarios/require_activesupport_testing_autorun.rb
47
58
  - test/scenarios/require_test_unit.rb
48
59
  homepage: http://cukes.info
49
- licenses: []
60
+ licenses:
61
+ - MIT
50
62
  metadata: {}
51
63
  post_install_message:
52
64
  rdoc_options:
@@ -65,20 +77,28 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
77
  version: '0'
66
78
  requirements: []
67
79
  rubyforge_project:
68
- rubygems_version: 2.0.0
80
+ rubygems_version: 2.1.5
69
81
  signing_key:
70
82
  specification_version: 4
71
- summary: multi-test-0.0.2
83
+ summary: multi-test-0.0.3
72
84
  test_files:
85
+ - test/README.md
73
86
  - test/all
74
- - test/gemfiles/activesupport-4.0.0/.scenarios.swn
75
- - test/gemfiles/activesupport-4.0.0/.scenarios.swo
76
87
  - test/gemfiles/activesupport-4.0.0/Gemfile
77
88
  - test/gemfiles/activesupport-4.0.0/Gemfile.lock
78
89
  - test/gemfiles/activesupport-4.0.0/scenarios
90
+ - test/gemfiles/activesupport-4.1.0/Gemfile
91
+ - test/gemfiles/activesupport-4.1.0/Gemfile.lock
92
+ - test/gemfiles/activesupport-4.1.0/scenarios
79
93
  - test/gemfiles/minitest-5.0.1/Gemfile
80
94
  - test/gemfiles/minitest-5.0.1/Gemfile.lock
81
95
  - test/gemfiles/minitest-5.0.1/scenarios
96
+ - test/gemfiles/minitest-5.1.0/Gemfile
97
+ - test/gemfiles/minitest-5.1.0/Gemfile.lock
98
+ - test/gemfiles/minitest-5.1.0/scenarios
99
+ - test/gemfiles/minitest-5.2.0/Gemfile
100
+ - test/gemfiles/minitest-5.2.0/Gemfile.lock
101
+ - test/gemfiles/minitest-5.2.0/scenarios
82
102
  - test/gemfiles/plain-ruby/Gemfile
83
103
  - test/gemfiles/plain-ruby/Gemfile.lock
84
104
  - test/gemfiles/plain-ruby/scenarios
@@ -90,6 +110,7 @@ test_files:
90
110
  - test/gemfiles/test-unit-2.4.9/scenarios
91
111
  - test/run
92
112
  - test/scenarios/bundler_require.rb
113
+ - test/scenarios/minitest_propagate_exit_code.rb
93
114
  - test/scenarios/require_activesupport_testing_autorun.rb
94
115
  - test/scenarios/require_test_unit.rb
95
116
  has_rdoc: