Mit Nose & NoseXUnit auf einem Python-Paket
Frage
Dies ist ein vorheriger Eintrag einen CI-Setup für Python Details. Der Fragesteller hat und Antworter Detail die Verwendung von Nase und NoseXUnit mit Hudson für ihre Builds. Allerdings NoseXUnit wirft einen Fehler, wenn auf einem beliebigen Quellordner ausführen, auf das init .py vorhanden ist:
File "build/bdist.linux-x86_64/egg/nosexunit/tools.py", line 59,
in packages nosexunit.excepts.ToolError: following folder can not contain
__init__.py file: /home/dev/source/web2py/applications
Ich kann nicht glauben, von einem Quellordner von mir, dass auch kein Paket. Gibt es einen Schritt ich vermisst, wenn sie mit NoseXUnit
UmgangLösung
Sie sollten wahrscheinlich nicht NoseXUnit verwenden - es ist wirklich veraltet, und ein ähnliches Merkmal besteht in der Nase> = 0,11
.Von Nase --help:
--with-xunit Enable plugin Xunit: This plugin provides test results
in the standard XUnit XML format. [NOSE_WITH_XUNIT]
--xunit-file=FILE Path to xml file to store the xunit report in. Default
is nosetests.xml in the working directory
[NOSE_XUNIT_FILE]
Wenn aus irgendeinem Grund müssen Sie eine alte Version von Nase, benutzen http://bitbucket.org/ durin42 / Nase-xml / -. das ist das Plugin, das die --with-xunit Option wurde