File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
# https://github.com/seattlerb/minitest#writing-extensions
5
5
module Minitest
6
6
def self . plugin_simplecov_init ( _options )
7
- SimpleCov . external_at_exit = true if SimpleCov . respond_to? ( :external_at_exit= )
7
+ SimpleCov . external_at_exit = true
8
8
9
9
Minitest . after_run do
10
10
SimpleCov . at_exit_behavior if SimpleCov . respond_to? ( :at_exit_behavior )
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ class << self
27
27
attr_accessor :pid
28
28
attr_reader :exit_exception
29
29
30
+ # Basically, should we take care of at_exit behavior or something else?
31
+ # Used by the minitest plugin. See lib/minitest/simplecov_plugin.rb
32
+ attr_accessor :external_at_exit
33
+ alias external_at_exit? external_at_exit
34
+
30
35
#
31
36
# Sets up SimpleCov to run against your project.
32
37
# You can optionally specify a profile to use as well as configuration with a block:
Original file line number Diff line number Diff line change 21
21
# Gotta stash this a-s-a-p, see the CommandGuesser class and i.e. #110 for further info
22
22
SimpleCov ::CommandGuesser . original_run_command = "#{ $PROGRAM_NAME} #{ ARGV . join ( ' ' ) } "
23
23
24
- class << SimpleCov
25
- attr_accessor :external_at_exit
26
- alias external_at_exit? external_at_exit
27
- end
28
-
29
24
at_exit do
30
25
next if SimpleCov . external_at_exit?
31
26
You can’t perform that action at this time.
0 commit comments