diff --git a/README.md b/README.md index efdbdb1..f0be462 100644 --- a/README.md +++ b/README.md @@ -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: