I am using Python Nose and would like to print the type of the test ran, like whether it is a Doctest or unittest or so? How can this be done?
Thanks.
Using --with-doctests implies that you're running doctests. Anything outside of a doctest can be considered a unit test. AFAIK, they're not mutually exclusive, so you can't strictly tell which you're running if you've enabled --with-doctests.
Having said that, doctests generally are a form of unit test, so I'm not quite sure what end you're trying to achieve with this.
Print the test type in Python Nose