Permalink
Browse files

Changing testing to pytest

Updating documentation and ci features to call pytest instead of
nose.
  • Loading branch information...
emirvine committed Mar 5, 2017
1 parent a05027e commit c132dc837c60db0198494f3e4693e152b154136a
Showing with 12 additions and 11 deletions.
  1. +0 −1 .travis.yml
  2. +5 −4 CONTRIBUTING.md
  3. +1 −1 appveyor.yml
  4. +4 −3 duecredit/cmdline/cmd_test.py
  5. +2 −2 tox.ini
View
@@ -28,7 +28,6 @@ install:
script:
#- nosetests --with-doctest --with-cov --cover-package duecredit --logging-level=INFO -v
- coverage run --source duecredit -m py.test
# - PYTHONPATH=$PWD coverage run `which py.test` -s -v duecredit --logging-level=INFO -v
- python setup.py install # test installation
# for now flaking only the stub.py
- flake8 duecredit/stub.py
View
@@ -152,13 +152,13 @@ OS X.
Then use that virtual environment to run the tests, via
```sh
python -m nose -s -v duecredit
python -m py.test -s -v duecredit
```
or similarly,
```sh
nosetests -s -v duecredit
py.test -s -v duecredit
```
then to later deactivate the virtualenv just simply enter
@@ -174,8 +174,9 @@ You can also check for common programming errors with the following tools:
- Code with good unittest coverage (at least 80%), check with:
pip install nose coverage
nosetests --with-coverage duecredit
pip install pytest coverage
coverage run --source duecredit -m py.test
coverage report
### Linting
View
@@ -41,7 +41,7 @@ install:
- pip install -e .
test_script:
- nosetests --with-doctest -v duecredit
- coverage run --source duecredit -m py.test
- python setup.py install
# for interactive debugging upon completion (have 30 min to react)
@@ -16,12 +16,13 @@
from .helpers import parser_add_common_args
def setup_parser(parser):
# TODO -- pass options such as verbosity etc
pass
def run(args):
import duecredit
import nose
raise NotImplementedError("Just use nosetests duecredit for now")
raise NotImplementedError("Just use pytest duecredit for now")
#duecredit.test()
View
@@ -3,11 +3,11 @@ envlist = py27,py33,py34,py35
#,flake8
[testenv]
commands = nosetests {posargs}
commands = py.test
deps = -r{toxinidir}/requirements.txt
[testenv:cover]
commands = nosetests --with-coverage {posargs}
commands = coverage run --source duecredit -m py.test
[testenv:flake8]
commands = flake8 {posargs}

0 comments on commit c132dc8

Please sign in to comment.