lib/pork.rb in pork-1.4.4 vs lib/pork.rb in pork-1.5.0
- old
+ new
@@ -84,11 +84,10 @@
end
end
def self.execute
if ENV['PORK_TEST']
- require 'pork/isolate'
if tests = Executor[ENV['PORK_TEST']]
@stat = Executor.execute(execute_mode, stat, tests)
else
puts "Cannot find test: #{ENV['PORK_TEST']}"
exit 254
@@ -101,11 +100,17 @@
def self.run
srand
execute_mode(ENV['PORK_MODE'])
report_mode(ENV['PORK_REPORT'])
trap
+ stat.loaded(@at, @files)
execute
stat.report
+ end
+
+ def self.loaded at=Time.now
+ @at = at
+ @files = $LOADED_FEATURES.size
end
def self.autorun auto=true
@auto = auto
@autorun ||= at_exit do