Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove disable_autorun #30

Merged
merged 3 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions lib/multi_test.rb
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
require 'multi_test/assertion_library'
module MultiTest
def self.disable_autorun
if defined?(Test::Unit::Runner)
Test::Unit::Runner.module_eval("@@stop_auto_run = true")
end

if defined?(Minitest)
Minitest.instance_eval do
def run(*)
# propagate the exit code from cucumber or another runner
case $!
when SystemExit
$!.status
else
true
end
end
end

if defined?(Minitest::Unit)
Minitest::Unit.class_eval do
def run(*)
end
end
end
end
end

def self.extend_with_best_assertion_library(object)
AssertionLibrary.detect_best.extend_world(object)
end
Expand Down
1 change: 0 additions & 1 deletion test/gemfiles/activesupport-4/scenarios
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require_activesupport_testing_autorun.rb
minitest_assertions.rb
1 change: 0 additions & 1 deletion test/gemfiles/activesupport-5/scenarios
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
require_activesupport_testing_autorun.rb
minitest_assertions.rb
1 change: 0 additions & 1 deletion test/gemfiles/minitest-4/scenarios
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
bundler_require.rb
minitest_propagate_exit_code.rb
minitest_assertions.rb
1 change: 0 additions & 1 deletion test/gemfiles/minitest-5/scenarios
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
bundler_require.rb
minitest_propagate_exit_code.rb
minitest_assertions.rb
2 changes: 0 additions & 2 deletions test/scenarios/bundler_require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@

# Now cucumber loads
require "multi_test"
MultiTest.disable_autorun

9 changes: 0 additions & 9 deletions test/scenarios/minitest_propagate_exit_code.rb

This file was deleted.

4 changes: 0 additions & 4 deletions test/scenarios/require_activesupport_testing_autorun.rb

This file was deleted.

1 change: 0 additions & 1 deletion test/scenarios/require_test_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@

# Now cucumber loads
require "multi_test"
MultiTest.disable_autorun