Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ksator committed Aug 30, 2016
1 parent cdb0796 commit 8110d1a
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,35 @@ The file **requirements.txt** has the list of python packages Travis installs.
Our **.travis.yml** file use the service Coveralls: Travis pushes the coverage report to Coveralls every time it runs, i.e., every time you push something to your GitHub repository.

## run python tests locally

py.test
py.test -v

py.test --cov .
py.test --cov . -v

py.test --cov maths.py
py.test --cov maths.py -v

py.test --cov-report term-missing --cov .
py.test --cov-report term-missing --cov . -v

py.test --cov-report term-missing --cov=maths.py
py.test --cov-report term-missing --cov=maths.py -v

py.test --doctest-modules -v

py.test --doctest-modules --cov .
py.test --doctest-modules --cov . -v

py.test --doctest-modules --cov . --cov-report term-missing
py.test --doctest-modules --cov . --cov-report term-missing -v

py.test --doctest-modules --cov=maths3.py
py.test --doctest-modules --cov=maths3.py -v

py.test --doctest-modules --cov=maths3.py --cov-report term-missing
py.test --cov-report term-missing
py.test --cov-report term-missing --ignore maths2.py

py.test --doctest-modules --cov=maths3.py --cov-report term-missing -v
## setup.cfg file
you can use a setup.cfg file at the root of the project with configuration options (ignore maths2.py, cov-report term-missing, ....) to then invoke your tests with a simple call to py.test.
more details:
Expand Down

0 comments on commit 8110d1a

Please sign in to comment.