Closed grosser closed 9 years ago
released in maxitest 1.2.0
Well, I'm running tests through rake test
, and then $0
is not the target file, no?
then you don't need/use -l
right ?
On Mon, Feb 23, 2015 at 5:47 AM, Magnus Holm notifications@github.com wrote:
Well, I'm running tests through rake test, and then $0 is not the target file, no?
— Reply to this email directly or view it on GitHub https://github.com/judofyr/minitest-line/pull/11#issuecomment-75542958.
I run rake test
, and when a test fails I copy-paste the ruby … -l 123
-line.
the output still has the correct file, that still works fine since it's coming from the failure methods source location
Oh right. That makes sense. Sorry for the noise. Merging now.
with a test that defines the first test using a helper we try to find tests in the wrong file.
but since the invocation is always ruby xxx.rb -l 123 we can just grab $0 and use that as the file you are interested in -> much simpler and not more false matches
@judofyr