jeudi 26 février 2015

Python print name of a unit test function in setup

After reading How to get the function name as string in Python?


I wondered if it is somehow possible to put a logging statement into one of the



def setUp(self):
...

def tearDown(self):
...


and print the name of the current test function.


Aucun commentaire:

Enregistrer un commentaire