Skip to content

Commit

Permalink
[CI] Switch to pytest for testing and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
klieret committed May 4, 2019
1 parent 4f95cb9 commit 0f2e587
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ python:
install:
# To work around a problem with wilson package we take the git master version of it
- "pip3 install ."
- "pip3 install nose2"
- "pip3 install pytest"
- "pip3 install pytest-cover"
- "pip3 isntall pytest-subtests"
- "pip3 install coveralls"

script:
- "nose2 --with-coverage"
- "pytest"

after_success: coveralls
2 changes: 1 addition & 1 deletion hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exec < /dev/tty

echo "Pre-commit hook engaged."

`nose2`
pytest
# read -p "Run unittests? [yY]" -n 1 -r
# echo # (optional) move to a new line
# if [[ $REPLY =~ ^[Yy]$ ]]
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool:pytest]
addopts = --cov=ankipandas

0 comments on commit 0f2e587

Please sign in to comment.