My Software Engineering Notes Help

Python Testing Commands

python-logo

Basic Doctest Commands

python -m doctest -v file_name.py

Basic Unittest Commands

  • Run a specific test file - python -m unittest <test_filename.py>

  • Run a specific test file in another folder - python -m unittest <folder>/<test_filename.py>

  • Run a specific test file in another folder verbose - python -m unittest -v <folder>/<test_filename.py>

Last modified: 10 March 2024