multi_test 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/README.md +1 -0
  4. data/VERSION +1 -1
  5. data/lib/multi_test.rb +27 -0
  6. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bf367ba6889bb0f2a47168e857a773f5c7749f2f4b41e9cad7a20a7981dafac
4
- data.tar.gz: 2506bc7ff22e1a38b87f98a2bb9595dde03179d40ffa7a7b87b60e09d4ebc10d
3
+ metadata.gz: 2a666a8b55c56b4e547051822e2a02b51be256409fb934503a08f68f87cafc2f
4
+ data.tar.gz: b9e57d4b98d90ebc815e9ce6c044ac4ddcff5c1ac94b3ff2793b54e5a48a50da
5
5
  SHA512:
6
- metadata.gz: d7eba973632f273bf8edfc3a56e643c6a5bce41e43814e30b9d00bbdcac28065e35f5808ea272ec08a0c9aebdcdc7daeb1102fd2e911bda49daa987b73fccb99
7
- data.tar.gz: c7e7c7d0a3fe90e079f3dd4410ab22256a56ecfaa1eb671c6813031b0b0f456503547e88fdcf0cedc52ee1521452bae622db6e08fb50a06911b922b1e037ee59
6
+ metadata.gz: 997dacf4ae70e90cfb18b98bbe7ddc6b11c5a66c91ed594a577508857b425caca804ffaa4dfaf9fb82f8f0d9a69b47700b08f920b8ce8db1793a8af7d6ea0744
7
+ data.tar.gz: e386e6c222b91977e09fec675078f0a4abf62688edc113668cd2d17721bb5ab49fc1bea6cf70fec1d68c07572863d1fccc898c0091fd83b2ece082b8e2eef7d5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.1.0] - 2022-05-11
6
+ ### Added
7
+ - `MultiTest.disable_autorun` is back again!
8
+ ([#33](https://github.com/cucumber/multi_test/issues/33)
9
+ [#26](https://github.com/cucumber/multi_test/issues/26))
10
+
5
11
  ## [1.0.0] - 2022-05-04
6
12
  ### Changed
7
13
  - As per [#251](https://github.com/cucumber/cucumber/issues/251): renamed History.md to CHANGELOG.md, added contributing message at beginning, and other formatting. ([#12](https://github.com/cucumber/multi_test/pull/12) [jaysonesmith](https://github.com/jaysonesmith/))
@@ -35,9 +41,9 @@ included. Ruby 2.2 removed minitest from standard library. (@tooky, @jmoody)
35
41
  ## [0.0.2]
36
42
  ### Changed
37
43
  - First gem release
38
- - First gem release
39
44
 
40
45
  [Unreleased]: https://github.com/cucumber/multi_test/compare/1.0.0..main
46
+ [1.1.0]: https://github.com/cucumber/multi_test/compare/1.0.0..main
41
47
  [1.0.0]: https://github.com/cucumber/multi_test/compare/v0.1.2..main
42
48
  [0.1.2]: https://github.com/cucumber/multi_test/compare/v0.1.1...v0.1.2
43
49
  [0.1.1]: https://github.com/cucumber/multi_test/compare/v0.1.0...v0.1.1
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Tests](https://github.com/cucumber/multi_test/actions/workflows/test-ruby.yml/badge.svg)](https://github.com/cucumber/multi_test/actions/workflows/test-ruby.yml)
2
+ [![Gem Version](https://badge.fury.io/rb/multi_test.svg)](https://badge.fury.io/rb/multi_test)
2
3
 
3
4
  This project gives you a uniform interface onto whatever testing library has been
4
5
  loaded into a running Ruby process.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
data/lib/multi_test.rb CHANGED
@@ -1,5 +1,32 @@
1
1
  require 'multi_test/assertion_library'
2
2
  module MultiTest
3
+ def self.disable_autorun
4
+ if defined?(Test::Unit::Runner)
5
+ Test::Unit::Runner.module_eval("@@stop_auto_run = true")
6
+ end
7
+
8
+ if defined?(Minitest)
9
+ Minitest.instance_eval do
10
+ def run(*)
11
+ # propagate the exit code from cucumber or another runner
12
+ case $!
13
+ when SystemExit
14
+ $!.status
15
+ else
16
+ true
17
+ end
18
+ end
19
+ end
20
+
21
+ if defined?(Minitest::Unit)
22
+ Minitest::Unit.class_eval do
23
+ def run(*)
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+
3
30
  def self.extend_with_best_assertion_library(object)
4
31
  AssertionLibrary.detect_best.extend_world(object)
5
32
  end
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: 1.0.0
4
+ version: 1.1.0
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: 2022-05-05 00:00:00.000000000 Z
12
+ date: 2022-05-11 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
@@ -57,5 +57,5 @@ requirements: []
57
57
  rubygems_version: 3.2.33
58
58
  signing_key:
59
59
  specification_version: 4
60
- summary: multi-test-1.0.0
60
+ summary: multi-test-1.1.0
61
61
  test_files: []