Skip to content

Commit 8010f72

Browse files
committed
Move from nosetests to pytest
1 parent 80cdd44 commit 8010f72

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ cache:
1717
- pip
1818

1919
install:
20-
- travis_retry pip install -q codecov six
21-
- pip install flake8 # eventually worth
20+
- travis_retry pip install -q codecov
21+
- pip install flake8
22+
- pip install -r requirements-dev.txt
2223

2324
script:
24-
# Run tests
25-
- PYTHONPATH=. nosetests -s -v --with-doctest --with-cov --cover-package . --logging-level=INFO -v .
25+
- pytest --doctest-modules behavioral/ creational/ dft/ fundamental/ other/ structural/ # exclude tests/
26+
- pytest -s -vv --cov=. --log-level=INFO tests/
2627
# Actually run all the scripts, contributing to coverage
2728
- PYTHONPATH=. ./run_all.sh
2829
- flake8 *py

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pytest~=4.1
2+
pytest-cov~=2.6

0 commit comments

Comments
 (0)