lib/covered/minitest.rb in covered-0.15.3 vs lib/covered/minitest.rb in covered-0.16.0
- old
+ new
@@ -17,24 +17,25 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
require_relative 'policy'
-require_relative 'policy/default'
require 'minitest'
+$covered = Covered::Config.load
+
module Covered
module Minitest
def run(*)
$covered.enable
super
end
end
end
-if ENV['COVERAGE']
+if $covered
class << Minitest
prepend Covered::Minitest
end
Minitest.after_run do