Build your own Python package (4)
Here is the content for the series of Build your own Python package:
- Make your package installable
- Generate doc for your package
- Format your codes
- Add testing for your codes
Add testing for your codes
TBC intro
pip install unittest
python -m unittest discover tests
test code coverage
pip install pytest pytest-cov
pytest --cov=myproj tests/
Enjoy Reading This Article?
Here are some more articles you might like to read next: