Created
June 20, 2019 14:37
-
-
Save oalders/9e585bae11563a0ce66ee1729e9040a3 to your computer and use it in GitHub Desktop.
Test2 vs Test::Warnings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat t/warnings.t | |
| use strict; | |
| use warnings; | |
| use Test2::V0; | |
| use Test::Warnings; | |
| ok(1); | |
| done_testing(); | |
| $ prove -lv t/warnings.t | |
| t/warnings.t .. | |
| # Seeded srand with seed '20190620' from local date. | |
| ok 1 | |
| 1..1 | |
| ok 2 - no (unexpected) warnings (via END block) | |
| # Looks like you planned 1 test but ran 2. | |
| Dubious, test returned 255 (wstat 65280, 0xff00) | |
| All 1 subtests passed | |
| Test Summary Report | |
| ------------------- | |
| t/warnings.t (Wstat: 65280 Tests: 2 Failed: 1) | |
| Failed test: 2 | |
| Non-zero exit status: 255 | |
| Parse errors: Plan (1..1) must be at the beginning or end of the TAP output | |
| Bad plan. You planned 1 tests but ran 2. | |
| Files=1, Tests=2, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.08 cusr 0.01 csys = 0.11 CPU) | |
| Result: FAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment