Permalink
Browse files

add message if a test file could not be loaded

  • Loading branch information...
1 parent eb9c7c0 commit f1eb85a3cce870ded9ff83fe2d7eca0e601e9815 @charliesome committed Feb 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test.rb
View
@@ -95,7 +95,9 @@ def initialize(file, ctx)
def setup
set_test_helpers
- @ctx.raw_exec File.read(@file), @scope
+ if ex = catch(:exception) { @ctx.raw_exec File.read(@file), @scope; nil }
+ STDERR.puts "could not load test file #{file}"
+ end
end
def run

0 comments on commit f1eb85a

Please sign in to comment.