I am using assert in python. Every time an assert fails I get the failure message which I would have put there to be printed. I was wondering if there is a way to print a cu
If you are really feeling adventurous, you can just write your own extensible assert wrapper - with which you can count the number of asserts failed or add functionality like testing in quiet or verbose modes eg:
def assert(condition, fail_str, suc_str):
if condition:
print fail_str
else:
num_tests_passed = num_tests_passed + 1
if verbose_enabled:
print suc_str