This repo contains the sample code for the article - Practical Overview Of The Top 5 Python Testing Frameworks
- Python (3.11+)
- Please see
requirements.txtfor the list of dependencies
βββ .gitignore
βββ README.md
βββ requirements.txt
ββββsrc
β βββ check_number.py
ββββtests
βββ number_tests.robot
βββ test_check_number_with_nose2.py
βββ test_check_number_with_pytest.py
βββ test_check_number_with_unittest.pyPlease install the dependencies via the requirements.txt file using
pip install -r requirements.txtIf you don't have Pip installed, please follow instructions online on how to do it.
To run the Unit Tests from the root of the repo, run
pytest -vpython -m unittestnose2 -vpython src/check_number.py -vrobot tests/number_tests.robotIf you have any questions about the project, please raise an Issue on GitHub.