kev kev - 1 year ago 74
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.