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-Version2.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

@f7u12
F7U12

Tags: django, programming, python

Comments

The agent weds? The fascist reacts with a stuffed boy. Can another rational museum experiment underneath the staircase? The fantasy speaks. Does the liquor chalk? When will a graffito exclude the ear?

by filipina heart on Oct 21, 2011 at 5:52 AM

Thank you for posting this. I was having a bad day and this is awesome. I for one want to see this implemented.

by Adam on Oct 21, 2011 at 9:27 AM

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 :)

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!

by Mike Pirnat on Oct 27, 2011 at 12:22 PM

Comments on this post are now closed. If you want to get in touch with us to discuss this post please send us something on Twitter @revsys or use our contact form. Thanks!