Test-More / Test2-Harness

Alternative to Test::Harness
Other
23 stars 26 forks source link

[major_refactor] Preserve original filename in $0 when running test #130

Closed atoomic closed 4 years ago

atoomic commented 4 years ago

Do not use an absolute path for the file path.

It's common to use symlink and their name while running unit tests, we should not alter $0 at all when running the test.

This is providing one integration test to reproduce the error.

We have already logic in Test2::Harness::TestFile to detect relative path.