Skip to content

Supersimple examples how to write unit tests in Python

License

Notifications You must be signed in to change notification settings

stardust85/python-unittests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-unittests

Supersimple examples how to write unit tests in Python

Pre-requisites

  1. pipenv (package manager recommended by Python Packaging Authority) installed
$ pip3 install --user pipenv
  1. virtual environment activated
$ pipenv shell
  1. packages installed
$ pipenv install -d

How to run the tests

$ python3 -m unittest

Coverage

Run tests with coverage

$ coverage run -m unittest

Display coverage

$ coverage report

or export to HTML (contains lines annotated by colors)

$ coverage html

About

Supersimple examples how to write unit tests in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages