python 3.x - Nose2 XML won't find modules, when unconfigured Nose2 will -


this beginners mistake, or of like.

update

i installed nose instead of nose2, , ran nosetests --with-xunit , did wanted, proving issue not code how handling nose2. still know how can achieve same thing nose2, seems nose2 phase out nose , prefer convert sooner rather later.

current setup

i running nose2, finds , goes though of python 3.6 unit tests , runs them. passing. redirecting output file able open text document , see ran x tests in y.zzzs line, , indicates tests passing.

objective

i need instead export other format (currently trying xml plugin) that, @ later time, can build web interface. if not xml, perhaps html, or json, or yml, or extent.

attempted

  • according the (likely misinterpreted) docs, when invoked command line via nose2 --plugin nose2.plugins.junitxml.junitxmlreporter, modulenotfounderror: no module named 'nose2.plugins.junitxml.junitxmlreporter'; 'nose2.plugins.junitxml' not package
  • nose2 --plugin nose2.plugins.junitxml run , pass tests not export results xml @ current location, home, or tests directory assuming not @ all.
  • nose2 --config nose2.cfg (both , config in sources directory) cause tests fail failing import of modules have written (implying importing modules interpreter, including ones i've pipped in i'm assuming using correct virtual environment.), output these failures xml @ current location. configuration follows:

    [unittest] start-dir = .     <-- source directory, "tests" sub of plugins = nose2.plugins.junitxml code-directories = .                    tests/  [junit-xml] always-on = true path = nose2-junit.xml 


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -