nese-coolstorybro er en nese plugin for app testing.
Installer
PIP installere git + git: //github.com/benjaminws/nose-coolstorybro.git
BRUK
Testene er for store:
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro test / eksempler
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp; & nbsp; FEIL: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Traceback (siste samtale sist):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linje 133, i løp
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linje 151, i RunTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/usr/lib/python2.7/unittest/case.py", linje 385, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.run (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/usr/lib/python2.7/unittest/case.py", linje 296, i løp
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (egen-)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", linje 172, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linje 94, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; tilbake self.call (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linje 162, i enkle
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Resultatet = meth (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linje 343, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; tilbake self.plugin.startTest (test.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "bygge / bdist.linux-x86_64 / egg / coolstorybro / coolstorybro.py", linje 43, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; heve CoolStoryBro
& Nbsp; & nbsp; & nbsp; CoolStoryBro: U MAD?
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 tester i 0.002s
& Nbsp; & nbsp; & nbsp; FAILED (feil = 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; FEIL: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Traceback (siste samtale sist):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linje 133, i løp
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linje 151, i RunTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/usr/lib/python2.7/unittest/case.py", linje 385, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; returnere self.run (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/usr/lib/python2.7/unittest/case.py", linje 296, i løp
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (egen-)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", linje 172, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linje 94, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; tilbake self.call (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linje 162, i enkle
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Resultatet = meth (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Fil "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linje 343, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; tilbake self.plugin.startTest (test.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "bygge / bdist.linux-x86_64 / egg / coolstorybro / coolstorybro.py", linje 42, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; heve CoolStoryBro ("TL; DR:% d linjer"% test_length)
& Nbsp; & nbsp; & nbsp; CoolStoryBro: TL; DR: 12 linjer
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 tester i 0.002s
& Nbsp; & nbsp; & nbsp; Mislyktes (feil = 1)
Krav
- Python
- nese
Kommentarer ikke funnet