Test-More / TB2

Test::Builder version 2, the next generation of building testing modules in Perl
Other
1 stars 0 forks source link

Add file/line context to events #167

Closed schwernbot closed 10 years ago

schwernbot commented 10 years ago

From: @schwern Date: Monday Nov 07, 2011 at 22:26 GMT Orig: https://github.com/Test-More/test-more/issues/182

In order for watchers to issue good errors as Test::Builder does, they need to know the file and line number where events originated.

Add a file and line number attribute to all events. It should have no default and be set by the builder.

schwernbot commented 10 years ago

From: @schwern Date: Wednesday Nov 09, 2011 at 04:26 GMT Orig: https://github.com/Test-More/test-more/issues/182#issuecomment-2677410

That does it. TB1 and TB2 both set file and line on events they issue.