Test-More / test-more

Test2, Test::More, Test::Simple and Test::Builder Perl modules for writing tests
Other
140 stars 88 forks source link

Test::More skip() allows test name #927

Closed renormalist closed 6 months ago

renormalist commented 6 months ago

Allow to specify which test name got skipped. This can be the exact name of a test when skipping only 1 test or a hint about which group of multiple tests is skippped.

That allows to provide a hint in the printed TAP about the skipped test, especially when the skip reason is too generic or re-used multiple times.

The name is just passed through to the test builder which takes care of handling it, in particular potential undefined values, which is important for backwards compatibility.

renormalist commented 6 months ago

Please note that while although they are technically independent this assumes https://github.com/Test-More/test-more/pull/926 to be in but I wanted to keep them discussed independently for their different visibility: #926 is not an api change, while #927 is a user-visible api extension.

exodist commented 6 months ago

https://github.com/rsrchboy/Test-Moose-More/pull/20

exodist commented 6 months ago

I have reverted this for now because Test::Moose::More has enough things that depend on it that I am not willing to break it. If @rsrchboy merges my PR and releases the fix, I will unrevert this and release. This is the only thing blocking this.