mercredi 14 septembre 2016

How to run jython nosetest with eclipse and on the command line/terminal in linux

Hi and thanks in advance,

I was wondering how to set up a jython (2.71b3) nosetest in eclipse? I already installed PyDev. Within the PYTHONPATH I have the added some customize jars. Also within the windows preferences for PyUnit, I have Test Runner as Nose test runner selected with my options

--verbosity 2
--tc-file=test.properties 
--tc-file=nose.cfg
--with-xunit 
--xunit-file=TestResults/test.xml

Running as Jython unit test gives me this error:

Usage: runfiles.py [options]

runfiles.py: error: no such option: --tc-file 

I should mention that I already have python unit testing with the above options with no problem.

Then I also was wondering how do I setup Jython to run a nosetest (1.3.7) on a linux terminal with customize jars. I am not sure if there is an additional nose package that I need to install to include the classpath option. In the linux system, I run with the options as defined in eclipse.

Aucun commentaire:

Enregistrer un commentaire