næse-coolstorybro er en næse plugin app test.
INSTALL
pip installere git + git: //github.com/benjaminws/nose-coolstorybro.git
ANVENDELSE
Din test er for store:
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro test / eksempler
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp; & nbsp; FEJL: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Tilbagesporingshukommelsen (seneste opkald sidste):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linie 133, løb
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linie 151, i runTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/usr/lib/python2.7/unittest/case.py", linie 385, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.run (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/usr/lib/python2.7/unittest/case.py", linie 296, i løb
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (selv-)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", linie 172, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linie 94, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.call (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linie 162, i enkle
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; resultat = meth (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linie 343, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.plugin.startTest (test.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "bygge / bdist.linux-x86_64 / æg / coolstorybro / coolstorybro.py", linie 43, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; hæve CoolStoryBro
& Nbsp; & nbsp; & nbsp; CoolStoryBro: U MAD?
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 tests i 0.002s
& Nbsp; & nbsp; & nbsp; FAILED (fejl = 1)
Hvor mange linjer var det?
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro --tl-dr test / eksempler
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp;
& Nbsp; & nbsp; & nbsp; FEJL: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Tilbagesporingshukommelsen (seneste opkald sidste):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linie 133, løb
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linie 151, i runTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/usr/lib/python2.7/unittest/case.py", linie 385, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.run (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/usr/lib/python2.7/unittest/case.py", linie 296, i løb
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (selv-)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", linie 172, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linie 94, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.call (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linie 162, i enkle
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; resultat = meth (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linie 343, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.plugin.startTest (test.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "bygge / bdist.linux-x86_64 / æg / coolstorybro / coolstorybro.py", linie 42, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; hæve CoolStoryBro ("TL; DR:% d linjer"% test_length)
& Nbsp; & nbsp; & nbsp; CoolStoryBro: TL; DR: 12 linjer
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 tests i 0.002s
& Nbsp; & nbsp; & nbsp; Mislykkedes (fejl = 1)
Krav :
- Python
- næse
Kommentarer ikke fundet