Run individual nose-parameterized tests

872 views Asked by At

I am working on a Django project, and we are using nose-parameterized library. I can see all of the parameterized tests in the runner if I run the full class, but then if I try to run just by right clicking the test name, and clicking run or debug, pycharm fails to inject the parameters.

any ideas on how to get this workflow to work? as a workaround, i am making individual data driven test cases in single classes.

1

There are 1 answers

1
Rahul Kote On

You can run those parameterized test cases using:

--test= modulename/method name

e.g

nosetests -v test_file_name.py --test=modulename/method name,modulename2

Refer this link http://nose.readthedocs.org/en/latest/usage.html