Subject: | ExtraTests: put #line in generated files |
ExtraTests takes files in xt/*/ and rewrites them in t/ with some lines
added at the beginning.
But it would be helpful to preserve the original file/line origin of the
test code, because this is that the author wants to debug.
For example for xt/author/foo.t, it would add:
----8<--------8<--------8<--------8<----
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
require Test::More;
Test::More::plan(skip_all => 'these tests are for testing by the
author');
}
}
#line 0 "xt/author/foo.t"
----8<--------8<--------8<--------8<----
(Those #line could then be used by AutoPrereqs to ignore author/release
dependencies see RT#76305)
--
Olivier Mengué - http://perlresume.org/DOLMEN