Add pytest-cov (#1578)

* Add pytest-cov

Also added coverage report in .travis.yml file.

* updating DIRECTORY.md

* Sort by missing statements

* sort = Cover
This commit is contained in:
Mantas Zimnickas 2019-11-17 20:37:58 +02:00 committed by Christian Clauss
parent 9a894ebc52
commit 5616fa9e62
4 changed files with 7 additions and 1 deletions

4
.coveragerc Normal file
View File

@ -0,0 +1,4 @@
[report]
sort = Cover
omit =
.env/*

View File

@ -9,6 +9,6 @@ before_script:
script:
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
- mypy --ignore-missing-imports .
- pytest . --doctest-modules
- pytest --doctest-modules --cov-report=term-missing:skip-covered --cov=. .
after_success:
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md

View File

@ -521,6 +521,7 @@
* [Naive String Search](https://github.com/TheAlgorithms/Python/blob/master/strings/naive_string_search.py)
* [Rabin Karp](https://github.com/TheAlgorithms/Python/blob/master/strings/rabin_karp.py)
* [Remove Duplicate](https://github.com/TheAlgorithms/Python/blob/master/strings/remove_duplicate.py)
* [Word Occurence](https://github.com/TheAlgorithms/Python/blob/master/strings/word_occurence.py)
## Traversals
* [Binary Tree Traversals](https://github.com/TheAlgorithms/Python/blob/master/traversals/binary_tree_traversals.py)

View File

@ -9,6 +9,7 @@ opencv-python
pandas
pillow
pytest
pytest-cov
requests
scikit-fuzzy
sklearn