näsa-coolstorybro är en näsa plugin för app-testning.
Installera
Pip installera git + git: //github.com/benjaminws/nose-coolstorybro.git
användning
Dina tester är för stor:
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro test / exempel
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp; & nbsp; FEL: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Spårnings (det senaste samtalet sist):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", rad 133, i körning
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", rad 151, i runTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/usr/lib/python2.7/unittest/case.py", rad 385, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; åter self.run (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/usr/lib/python2.7/unittest/case.py", rad 296, i körning
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (egen)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", rad 172, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", rad 94, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retur self.call (* Arg, ** kW)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", rad 162, på ett enkelt
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Resultatet = met (* arg, ** kW)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", rad 343, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retur self.plugin.startTest (test.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "bygga / bdist.linux-x86_64 / ägg / coolstorybro / coolstorybro.py", linje 43, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; höja CoolStoryBro
& Nbsp; & nbsp; & nbsp; CoolStoryBro: U MAD?
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 tester i 0.002s
& Nbsp; & nbsp; & nbsp; MISSLYCKADES (fel = 1)
Hur många rader var det?
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro --tl-dr test / exempel
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp;
& Nbsp; & nbsp; & nbsp; FEL: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Spårnings (det senaste samtalet sist):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", rad 133, i körning
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", rad 151, i runTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; test (resultat)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/usr/lib/python2.7/unittest/case.py", rad 385, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; åter self.run (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/usr/lib/python2.7/unittest/case.py", rad 296, i körning
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (egen)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", rad 172, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", rad 94, i __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retur self.call (* Arg, ** kW)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", rad 162, på ett enkelt
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Resultatet = met (* arg, ** kW)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arkiv "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", rad 343, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retur self.plugin.startTest (test.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; File "bygga / bdist.linux-x86_64 / ägg / coolstorybro / coolstorybro.py", linje 42, i startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; höja CoolStoryBro ("TL; DR:% d lines"% test_length)
& Nbsp; & nbsp; & nbsp; CoolStoryBro: TL; DR: 12 rader
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 tester i 0.002s
& Nbsp; & nbsp; & nbsp; Misslyckades (fel = 1)
Krav :
- Python
- näsa
Kommentarer hittades inte