-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
61 lines (42 loc) · 1.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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)