diff --git a/ruby/lib/minitest/queue/test_data.rb b/ruby/lib/minitest/queue/test_data.rb index 38d6b52e..6c0dd6a1 100644 --- a/ruby/lib/minitest/queue/test_data.rb +++ b/ruby/lib/minitest/queue/test_data.rb @@ -54,7 +54,11 @@ def test_duration def test_file_path path = @test.source_location.first - relative_path_for(path) + begin + relative_path_for(path) + rescue ArgumentError + path # e.g. "(eval)" etc. + end end def test_file_line_number