Skip to main content

f7u12 output plugin for the nose testing framework

Project description

Nose F7U12
==========

Implements PEP-712 style output for the Nose testing framework so that the
output more accurately represents the developer's feelings when blocks of tests
fail. After 7 failures, omit a "U" instead of an "F".

See http://www.revsys.com/blog/2011/oct/20/pep712-proposal-make-unittest2-more-accurate/

Why? Because I laughed when I first saw PEP-712, and I'd never written a Nose
plugin before.

Thanks to:

* Michael Foord (for tweeting the link in the first place)
* Kumar McMillan (for having a good example to cheat off of/learn from)

Install
-------

From PyPI:

pip install nose-f7u12

From source:

pip install git+git://github.com/mpirnat/nose-f7u12#egg=nose_f7u12

Usage
-----

nosetests --with-f7u12

Example
-------

$ nosetests --with-f7u12

.......FFFFFFFFUUUUUUUUUUUUUUUU..U..U..U..U..U..U.
======================================================================
FAIL: test_f7u12.TestGeneratesLotsOfFailures.test_generates_failures(7,)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/Users/mpirnat/Documents/code/python/nose-f7u12/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File
"/Users/mpirnat/Documents/code/python/nose-f7u12/src/examples/test_f7u12.py",
line 15, in _make_a_test
assert False
AssertionError

----------------------------------------------------------------------

< lots more test failure output; use your imagination... >

----------------------------------------------------------------------
Ran 50 tests in 0.021s

FAILED (errors=30)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nose-f7u12-0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file nose-f7u12-0.2.tar.gz.

File metadata

  • Download URL: nose-f7u12-0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nose-f7u12-0.2.tar.gz
Algorithm Hash digest
SHA256 82f77629268aacd1389e7fca94d0770e0fcfb9381e135e2a220fe99a16f1d9ef
MD5 709a4b0e38cf6859a2652c0766b710c8
BLAKE2b-256 94a771906ad6e17081c6f3933061b26646c0cd81719fab33330ab96fc9f0f154

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page