Skip to content

Commit

Permalink
Switch from nose to pytest (#434)
Browse files Browse the repository at this point in the history
* Switch from nose to pytest

* Include coverage report in make test
  • Loading branch information
singingwolfboy authored and alanhamlett committed Jun 5, 2019
1 parent a225ae2 commit 620cf3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 47 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all test clean_coverage clean pep8 pyflakes check
.PHONY: all test clean_coverage clean pep8 pyflakes check

all:
@echo 'test run the unit tests'
Expand All @@ -10,7 +10,8 @@ all:

test: clean_coverage
@echo 'Running all tests...'
@VERBOSE=1 PATH=${PATH} ./run-tests.sh
coverage run --source=flask_login --module pytest
coverage report

clean_coverage:
@rm -f .coverage
Expand Down
3 changes: 1 addition & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
blinker==1.4
coverage==4.3.1
mock==2.0.0; python_version < '3.3'
nose==1.3.7
pytest<3.3 # pytest 3.3 drops support for Python 2.6 and 3.3
pep8==1.7.0
pyflakes==1.5.0
semantic_version==2.6.0
yanc==0.3.3
43 changes: 0 additions & 43 deletions run-tests.sh

This file was deleted.

0 comments on commit 620cf3d

Please sign in to comment.