Skip to content

Commit

Permalink
Handle tests generated with eval
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 23, 2020
1 parent 406088a commit 5523f88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ruby/lib/minitest/queue/test_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5523f88

Please sign in to comment.