kev kev - 1 year ago 118
Python Question

How to make nosetests use dotted syntax?

Is there a way to make nosetests print:

ERROR: product.test.lib.test_csv_tools:CSVToolsTest.test_missing_header_csv

instead of:

ERROR: test_missing_header_csv (product.test.lib.test_csv_tools.CSVToolsTest)

Then I could easily copy it and run the single test(s) that failed. Would be quite handy.

Answer Source

I think you should be looking for a specific nose plugin that provides this kind of output. For example, the nose_runnable_test_names sounds close to what you are asking about.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download