We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Howdy,
If a test has this:
TODO: { local $TODO="derp"; ok(0) }
The failure is considered success:
not ok 2 # TODO derp # Failed (TODO) test at todo.t line 1. ok All tests successful.
Then if it starts passing (TODO: { local $TODO="derp"; ok(1) }) it is marked as such:
TODO: { local $TODO="derp"; ok(1) }
ok 2 # TODO derp ok All tests successful. Test Summary Report ------------------- todo.t (Wstat: 0 Tests: 2 Failed: 0) TODO passed: 2 Files=1, Tests=2, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.08 cusr 0.01 csys = 0.13 CPU) Result: PASS
That will trigger systems that something is amiss because a test started passing that shouldn’t.
it "should be tested"; behaves like the latter:
it "should be tested";
ok 2 - example should be tested # TODO (unimplemented) 1..2 ok All tests successful. Test Summary Report ------------------- spec.t (Wstat: 0 Tests: 2 Failed: 0) TODO passed: 2 Files=1, Tests=2, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.16 cusr 0.01 csys = 0.21 CPU) Result: PASS
Flagging that a test is now passing unexpectedly.
It feels like that should instead behave like an actual TODO since its definitely not passing since its not implemented.
Thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Howdy,
If a test has this:
TODO: { local $TODO="derp"; ok(0) }
The failure is considered success:
Then if it starts passing (
TODO: { local $TODO="derp"; ok(1) }
) it is marked as such:That will trigger systems that something is amiss because a test started passing that shouldn’t.
it "should be tested";
behaves like the latter:Flagging that a test is now passing unexpectedly.
It feels like that should instead behave like an actual TODO since its definitely not passing since its not implemented.
Thoughts?
The text was updated successfully, but these errors were encountered: