Use pytest
to test using your test file.
pytest test_car.py
Use coverage
to find your test coverage metrics.
coverage run –-branch –m pytest test_car.py
coverage report
Pynguin looks for your code in the current directory and writes out the generated test file in pynguin-tests
dir. We will use pynguin version 0.40.0
.
pynguin \
--project-path ./ \
--output-path pynguin-tests \
--module-name car
-v
Use the configuration provided in ci.yml
as a starter for your GitHub Action.
Further reading on setting up git and the rest: https://www.notion.so/gurkhaman/Github-Quickstart-202549021b4880b1a960e662916332df