Re: Test::Buildder v. Test2 subtests
[email protected] (Ricardo Signes) Tue, 13 Dec 2016 11:18:02 -0500
| Newsgroups | perl.qa |
|---|---|
| Message-ID | <20161213161802.GA23568@debian> |
--Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Chad Granum <[email protected]> [2016-12-13T11:13:56] > I would like to see the results when you use > Test2::Tools::Subtest::subtest_streamed() which is the actual equivalent = to > Test::More::subtest(). Thanks for the pointer. I have tried this and got identical ("bad") result= s to Test2::API::run_subtest: ~$ perl foo t2ss # Subtest: test not ok 1 - Subtest: test # Failed test 'Subtest: test' # at foo line 24. # Caught exception in subtest: 123 at foo line 13. 1..1 not ok 1 - subprocess died # Failed test 'subprocess died' # at foo line 11. # got: 0 # expected: anything else 1..1 not ok 1 - Subtest: test # Failed test 'Subtest: test' # at foo line 24. 1..1 # Looks like you failed 1 test of 1. Compare to: ~$ perl foo t2rs # test not ok 1 - test # Failed test 'test' # at foo line 24. # Caught exception in subtest: 123 at foo line 13. 1..1 not ok 1 - subprocess died # Failed test 'subprocess died' # at foo line 11. # got: 0 # expected: anything else 1..1 not ok 1 - test # Failed test 'test' # at foo line 24. 1..1 # Looks like you failed 1 test of 1. The entire difference appears to be "Subtest: test" vs. "test" --=20 rjbs --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJYUB86AAoJEOYby6cMccU5qlQIAMgT4dKgufiBcLeJOmJC6xb4 9p2KJaMVTioLKsFBhr+lT48P5V5UUWzeAizDMXdcyyzJTkckIVrBEtlnD0aXZQ8o +br05c8TPYn4giDiVLfeUu8CD35xAhTc4l57NQy1BJep7fXV1dvXauD2lSD2Tkoi BlUWhq/G7AV50xCLyk/xRH60l/hFd1k17EuxTfq3pmF42izBeHWEf9+aa9PdvPyg c7SCHyeM1k+nRQ1/Dc08kaIyX/04O83U1vRLO7Or4Py9UtxcdaK32bCUNjFKqY6t vl97yUd2SpXQEmtwXH8f0YmEVa9jMQGRb9zBDXc2iSZ2dyOsDBqdGyUI66enYN4= =1/Cv -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--