Commit f29ed1bb authored by Mark Hymers's avatar Mark Hymers

Port to py.test

Signed-off-by: Mark Hymers's avatarMark Hymers <mark.hymers@ynic.york.ac.uk>
parent 80844d78
Pipeline #1323 passed with stage
in 5 minutes and 46 seconds
[run]
omit = anamnesis/tests/*.py,anamnesis/test/*.py
.coverage
*.pyc
build
......@@ -6,7 +6,7 @@ build_test:
script:
- apt update
- apt upgrade -y
- apt install -y python-numpy python3-numpy python-h5py python3-h5py python-sphinx python3-sphinx python-sphinx-rtd-theme python3-sphinx-rtd-theme ipython ipython3 flake8 python-setuptools python3-setuptools python-nose python3-nose python-wheel python3-wheel
- apt install -y python-numpy python3-numpy python-h5py python3-h5py python-sphinx python3-sphinx python-sphinx-rtd-theme python3-sphinx-rtd-theme ipython ipython3 flake8 python-setuptools python3-setuptools python-pytest python3-pytest python-pytest-cov python3-pytest-cov python-wheel python3-wheel
- flake8
- python setup.py build
- make testv2
......
......@@ -28,16 +28,16 @@ clean:
rm -fr doc/build
test3: all
cd build && PYTHONPATH=lib$(PYTHONARCH3)/:$${PYTHONPATH} nosetests3 -c ../nose.cfg lib$(PYTHONARCH3)/anamnesis
py.test-3 -c setup.cfg anamnesis
testv3: all
cd build && PYTHONPATH=lib$(PYTHONARCH3)/:$${PYTHONPATH} nosetests3 --with-coverage --cover-package=anamnesis -c ../nose.cfg -s -v lib$(PYTHONARCH3)/anamnesis
py.test-3 -c setup.cfg -v anamnesis
test2: all2
cd build && PYTHONPATH=lib$(PYTHONARCH)/:$${PYTHONPATH} nosetests -c ../nose.cfg lib$(PYTHONARCH)/anamnesis
py.test -c setup.cfg anamnesis
testv2: all2
cd build && PYTHONPATH=lib$(PYTHONARCH)/:$${PYTHONPATH} nosetests --with-coverage --cover-package=anamnesis -c ../nose.cfg -s -v lib$(PYTHONARCH)/anamnesis
py.test -c setup.cfg -v anamnesis
install:
python3 setup.py install --prefix=$(DESTDIR)/usr
......
This diff is collapsed.
......@@ -3,3 +3,6 @@ max-line-length=120
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
[tool:pytest]
addopts = --cov anamnesis --cov-report=term-missing
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