unittest colored output

前端 未结 9 2087
予麋鹿
予麋鹿 2020-12-13 17:39

I use unittest (actually unittest2) for Python testing, together with Python Mock for mocking objects and nose to run all tests in a single pass.

9条回答
  •  遥遥无期
    2020-12-13 18:14

    If you are running pytest this way:

    python -m unittest test_my.py
    

    Change it to:

    pytest test_my.py
    

    And you get colors for free

提交回复
热议问题