Commit 441cc7a9 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed bug within tests, moved nosetests call back to makefile.

Former-commit-id: d7c6022c
Former-commit-id: 66d64e06
parent a7e8c51e
......@@ -7,15 +7,14 @@ test_geomultisens:
- export GDAL_DATA=/root/anaconda3/share/gdal
- export PYTHONPATH=$PYTHONPATH:/root # /root <- directory needed later
- pip install nose2 nose-htmloutput
- make clean-test
- make coverage
- nosetests -l nose -d
#- make nosetests
- make nosetests
- make docs
artifacts:
paths:
- htmlcov/
- docs/_build/html/
- nosetests.html
- nosetests.xml
pages:
stage: deploy
......
......@@ -71,7 +71,6 @@ nosetests: clean-test ## Runs nosetests with coverage, xUnit and nose-html-outpu
## - generates 'nosetests.html' (--with-html)
## - generates 'nosetests.xml' (--with-xunit) which is currently not visualizable by GitLab
nosetests -vv --with-coverage --cover-package=geomultisens --cover-erase --cover-html --cover-html-dir=htmlcov --with-html --with-xunit
#nose2
docs: ## generate Sphinx HTML documentation, including API docs
rm -f docs/geomultisens.rst
......
......@@ -20,10 +20,10 @@ class TestTestproject(unittest.TestCase):
def test_sp(self):
"""Test something."""
func_singleprocessing(5)
self.assertGreater(1,2)
def test_mp(self):
call_mp()
self.assertIsNotNone(1)
if __name__ == '__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment