Jia-Xin Zhu
  • Home
  • Blog(current)
  • CV
  • Publications
  • Repositories

Build your own Python package (4)

June 30, 2024• Jia-Xin Zhu

2024   ·   python     ·   code  

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:

  • Build your own Python package (1)
  • Build your own Python package (2)
  • Build your own Python package (3)
  • Make a fancy snapshot for your work!
  • Quick Start of Selenium
  • © Copyright 2025 Jia-Xin Zhu. Powered by Jekyll with al-folio theme. Hosted by GitHub Pages. Last updated: May 06, 2025.