Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla CPAN distribution.

Report information
The Basics
Id: 76993
Status: rejected
Priority: 0/
Queue: Dist-Zilla

People
Owner: Nobody in particular
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 4.300015
Fixed in: (no value)



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
The problem is that a number of other plugins also do rewriting. Figuring out the line number to put in requires that plugins know the right line numbers to put in at the right time, based on the original content. It's not just that one plugin can be fixed. It would need to be part of a comprehensive change. I don't see that happening, but I'd be happy to be proven wrong. -- rjbs