Skip to content

Commit

Permalink
[Enhancement] Change test framework from Nose to pytest (#413)
Browse files Browse the repository at this point in the history
* Changed to pytest and pytest-cov for running tests with coverage

* Changed mpiexec test and added coveralls

Co-authored-by: Cristiano Köhler <[email protected]>
  • Loading branch information
kohlerca and Cristiano Köhler authored May 13, 2021
1 parent 165276f commit c461884
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ matrix:
- conda install -c conda-forge pyopencl oclgrind clang=9.0.1
- pip install -r requirements/requirements-extras.txt
- pip install mpi4py
script: mpiexec -n 1 python -m mpi4py.futures -m nose --with-coverage --cover-package=elephant
script: mpiexec -n 1 python -m mpi4py.futures -m pytest --cov=elephant
after_success: coveralls || echo "coveralls failed"

- name: "conda 3.7"
Expand Down Expand Up @@ -64,11 +64,11 @@ install:

- pip -V
- pip install -r requirements/requirements-tests.txt
- pip install coverage coveralls
- pip install pytest-cov coveralls
- python setup.py install
- python -c "from elephant.spade import HAVE_FIM; assert HAVE_FIM"
- pip list
- python --version

script:
nosetests --with-coverage --cover-package=elephant
pytest --cov=elephant
2 changes: 1 addition & 1 deletion requirements/requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nose>=1.3.3
pytest

0 comments on commit c461884

Please sign in to comment.