|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Getting less output using prove's --merge optionby nysus (Parson) |
| on Feb 28, 2025 at 14:28 UTC ( [id://11164100]=perlquestion: print w/replies, xml ) | Need Help?? |
|
nysus has asked for the wisdom of the Perl Monks concerning the following question: I'm trying to figure out why prove's --merge option gives me different output after running this test file:
With --merge:
And without:
I get a more detailed report without merge. I'm not sure why. I thought merge was supposed to merge STDERR into STDOUT so I didn't think there should be a difference. Merge docs say: --merge If you need to make sure your diagnostics are displayed in the correct order relative to test results you can use the --merge option to merge the test scripts' STDERR into their STDOUT. This guarantees that STDOUT (where the test results appear) and STDERR (where the diagnostics appear) will stay in sync. The harness will display any diagnostics your tests emit on STDERR. Caveat: this is a bit of a kludge. In particular note that if anything that appears on STDERR looks like a test result the test harness will get confused. Use this option only if you understand the consequences and can live with the risk.
$PM = "Perl Monk's";
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||