PEP712 - Proposal to make unittest2 more accurate
| PEP: | 712 |
|---|---|
| Title: | Proposal to make unittest2 more accurate |
| Version: | a58437babcaa |
| Last-Modified: | 2011-10-20T14:40:01.661119 (Thu, 20 Oct 2011) |
| Authors: | Frank Wiles <frank@revsys.com>, Jacob Kaplan-Moss <jacob@jacobian.org>, Jeff Triplett <jeff@revsys.com> |
| Status: | Draft |
| Type: | Humor |
| Created: | 20-Oct-2011 |
| Python-Version | 2.7 |
Introduction
This PEP describes a proposal to make unittest2 output more accurate and fun.
The Proposed Solution
Upon having more than 7 failing tests in a test run replace all 'F' character output with 'U's for the remainder of the test run.
Rationale
This output formatting more accurately describes the mental state of the developer.
Example
.....FFFFFFFUUUUUUUUUUUUUUUUU
CK
----------------------------------------------------------------------
Ran 25 tests in 3.14159s
FAILED (failures=19)
Optional Add-On
Replace next passing test after 19 failures with 'CK'.
Reference Implementations
See Reddit.com
References
Comments
I created a simple plugin for pytest that implements PEP712:
http://pypi.python.org/pypi/pytest-rage
hope it makes someone happy when their tests fail catastrophically :)
Posted by Leonardo Santagada on Oct 21, 2011 at 11:58 AM
Like Leonardo, I also made a plugin for this -- this one's for the Nose fans:
http://pypi.python.org/pypi/nose-f7u1...
Thanks for inspiring us!
Posted by Mike Pirnat on Oct 27, 2011 at 12:22 PM

Thank you for posting this. I was having a bad day and this is awesome. I for one want to see this implemented.
Posted by Adam on Oct 21, 2011 at 9:27 AM