nariz-coolstorybro é um plugin nariz para testes de aplicativos.
INSTALAR
pip instalar git + git: //github.com/benjaminws/nose-coolstorybro.git
Uso
Os testes são muito grandes:
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro testes / exemplos
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp; & nbsp; ERRO: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Traceback (most recent call last):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linha 133, em funcionamento
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultado)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linha 151, em runTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; resultado do teste)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/usr/lib/python2.7/unittest/case.py", linha 385, em __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.run retorno (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/usr/lib/python2.7/unittest/case.py", linha 296, em funcionamento
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (self)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", linha 172, em startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linha 94, em __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retornar self.call (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linha 162, em simples
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result = meth (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linha 343, em startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retornar self.plugin.startTest (Test.Test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "construir / bdist.linux-x86_64 / ovo / coolstorybro / coolstorybro.py", linha 43, em startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; levantar CoolStoryBro
& Nbsp; & nbsp; & nbsp; CoolStoryBro: U MAD?
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 testes em 0.002s
& Nbsp; & nbsp; & nbsp; FALHA (erros = 1)
Quantas linhas foi isso?
& Nbsp; & nbsp; & nbsp; $ nosetests --with-coolstorybro --tl-dr / exemplos de teste
& Nbsp; & nbsp; & nbsp; E
& Nbsp; & nbsp;
& Nbsp; & nbsp; & nbsp; ERRO: test_ex_coolstorybro.TestCoolStoryBroExample.test_ex_coolstorybro
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Traceback (most recent call last):
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linha 133, em funcionamento
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.runTest (resultado)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/case.py", linha 151, em runTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; resultado do teste)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/usr/lib/python2.7/unittest/case.py", linha 385, em __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.run retorno (* args, ** kwds)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/usr/lib/python2.7/unittest/case.py", linha 296, em funcionamento
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result.startTest (self)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/proxy.py", linha 172, em startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; self.plugins.startTest (self.test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linha 94, em __call__
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retornar self.call (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linha 162, em simples
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; result = meth (* arg, ** kw)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "/home/bsmith/Dev/python/nose-coolstorybro/lib/python2.7/site-packages/nose/plugins/manager.py", linha 343, em startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; retornar self.plugin.startTest (Test.Test)
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Arquivo "construir / bdist.linux-x86_64 / ovo / coolstorybro / coolstorybro.py", linha 42, em startTest
& Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; levantar CoolStoryBro ("TL; DR:% d linhas"% test_length)
& Nbsp; & nbsp; & nbsp; CoolStoryBro: TL; DR: 12 linhas
& Nbsp; & nbsp; & nbsp; -------------------------------------------------- --------------------
& Nbsp; & nbsp; & nbsp; Ran 0 testes em 0.002s
& Nbsp; & nbsp; & nbsp; Falhou (erro = 1)
Requisitos :
- Python
- nariz
Comentários não encontrado