سؤال

هذا منشور سابق بالتفصيل إعداد CI للبيثون. يفصل المعسول والمجيب باستخدام أنف و Nosexunit مع هدسون لبناءهم. لكن، Nosexunit يلقي خطأ عند التشغيل على أي مجلد مصدر حيث فيه.py موجود:

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

لا أستطيع التفكير في مجلد مصدر لي ليس حزمة أيضًا. هل هناك خطوة أفتقدها عند التعامل معها Nosexunit?

هل كانت مفيدة؟

المحلول

ربما يجب ألا تستخدم Nosexunit - إنه أمر قديم حقًا ، وميزة مماثلة موجودة في الأنف> = 0.11.

من الأنف -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]

إذا كنت بحاجة لسبب ما إلى إصدار قديم من الأنف ، فاستخدم http://bitbucket.org/durin42/nose-xml/ -هذا هو المكون الإضافي الذي أصبح خيار-مع Xunit.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top