show xfail reason in run-tests output
| From: | Daniel Convissor | Date: | Fri, 11 Feb 2011 01:19:22 +0000 |
| Subject: | show xfail reason in run-tests output | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-65733@lists.php.net to get a copy of this message | ||
Hi Folks:
When writing .phpt unit tests, using XFAIL is currently a double-edged
sword. The test fails now, as expected, excellent. Then the issue
gets fixed and the test passes, even better.
But down the line, someone introduces some regression. The test fails,
but the programmer thinks "It's an XFAIL, there's no problem."
The possibility of such mistakes can be reduced by the developer looking
at the XFAIL text, but such text is not currently output by run-tests.php.
The following text adds the XFAIL section's text to the output of failed
tests:
http://www.analysisandsolutions.com/php/run-tests-xfail-reason.diff
I don't have karma to commit this. I hope someone else here will,
please.
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409