From 8b5d0c286c91537b43eb3284aa93b382636e7ebf Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 3 Feb 2019 18:33:25 +0100 Subject: [PATCH] Document how to get the coverage from the testsuite --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index bd51f5d..87d251c 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,13 @@ doesn't run on [Debian Jessie](https://packages.debian.org/jessie/python3). $ python3 -m unittest discover -v ``` +And if you want to see the coverage: + +```bash +$ python3-coverage run --branch -m unittest discover -s tests/ +$ python3-coverage report --include -m --include /libmat2/*' +``` + # How to use MAT2 ```bash