background image

Exercise: Run Your Tests

Run on the command line:

cmd>

  python -m unittest test_math

..
----------------------------------------------------
Ran 2 tests in 0.001s

Run with verbose (-v) output

cmd>

  python -m unittest -v test_math.py

test_sqrt (test_math.MathTest) ... ok
test_pow (test_math.MathTest) ... ok
----------------------------------------------------
Ran 2 tests in 0.001s

Comments:

Unit Testing in Python

navigate_before navigate_next