mardi 28 juillet 2015

python unittest, report which tests failed

I'm trying to write an automatic tester using unittest. I organised my tests in a suit and managed to make it run on a single document, but I can't determine whether the suit had any failed tests (it prints the results out, but I need them returned as a variable). I need to know if any tests have failed, and if yes which ones.

Aucun commentaire:

Enregistrer un commentaire