jeudi 30 juillet 2015

Does Python unittest support customization for the report?

I like the fact that the unit test class will print out the nice summary about what pass and fail; although I can't see on the official documentation, how do you customize that output.

I see the msg parameter for the assert, which means that I can print a descriptive message when the assert trigger (test fail), but what if you want to include a summary on success?

Aucun commentaire:

Enregistrer un commentaire