Reputation: 9339
I want to do the equivalent of:
nosetests -v --collect-only <path_to_test_file>
inside a Python script, i.e. generate a list of test names, without generating any tests.
Is there a simple way to do this?
Upvotes: 0
Views: 114
Reputation: 6567
One quick way to get it: run this exact command in python, but output test results into xml using --with-xunit
and read xml file to get the list of tests. Alternatively make a quick plugin to sniff out tests.
Upvotes: 1