mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 19:48:43 +08:00
Use skimage test functions instead of nose commandline
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user