Use skimage test functions instead of nose commandline

This commit is contained in:
Johannes Schönberger
2013-11-18 11:37:47 +01:00
parent 4566c36b3a
commit b1d146df00
2 changed files with 4 additions and 8 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ script:
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
- "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"
# Run all tests
- nosetests --exe -v --with-doctest --ignore-files='^\.' --ignore-files='^setup\.py$$' --ignore-files='^_test' skimage
- python -c "import skimage; skimage.test_verbose()"
- python -c "import skimage; skimage.doctest_verbose()"
# Run all doc examples
- export PYTHONPATH=$(pwd):$PYTHONPATH
- for f in doc/examples/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done
+2 -7
View File
@@ -7,15 +7,10 @@ clean:
find . -name "*.so" -o -name "*.pyc" -o -name "*.pyx.md5" | xargs rm -f
test:
nosetests skimage
python -c "import skimage; skimage.test_verbose()"
doctest:
nosetests \
--with-doctest \
--ignore-files="^\." \
--ignore-files="^setup\.py$$" \
--ignore-files="^_test"
skimage
python -c "import skimage; skimage.doctest_verbose()"
coverage:
nosetests skimage --with-coverage --cover-package=skimage