test: Use pytest instead of nose
This commit is contained in:
parent
bae3cb06bc
commit
b86926e275
@ -14,11 +14,12 @@ RUN dnf -y install \
|
|||||||
python3-magic \
|
python3-magic \
|
||||||
python3-mako \
|
python3-mako \
|
||||||
python3-mock \
|
python3-mock \
|
||||||
python3-nose \
|
|
||||||
python3-pocketlint \
|
python3-pocketlint \
|
||||||
python3-pycdlib \
|
python3-pycdlib \
|
||||||
python3-pylint \
|
python3-pylint \
|
||||||
python3-pyparted \
|
python3-pyparted \
|
||||||
|
python3-pytest \
|
||||||
|
python3-pytest-cov \
|
||||||
python3-toml \
|
python3-toml \
|
||||||
python3-semantic_version \
|
python3-semantic_version \
|
||||||
python3-sphinx \
|
python3-sphinx \
|
||||||
|
5
Makefile
5
Makefile
@ -51,9 +51,8 @@ check:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
@echo "*** Running tests ***"
|
@echo "*** Running tests ***"
|
||||||
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m nose -v --with-coverage --cover-erase --cover-branches \
|
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m pytest -v --cov-branch \
|
||||||
--cover-package=pylorax --cover-package=lifted --cover-package=composer \
|
--cov=pylorax --cov=lifted --cov=composer \
|
||||||
--cover-inclusive \
|
|
||||||
./tests/pylorax/ ./tests/composer/ ./tests/lifted/
|
./tests/pylorax/ ./tests/composer/ ./tests/lifted/
|
||||||
|
|
||||||
coverage3 report -m
|
coverage3 report -m
|
||||||
|
Loading…
Reference in New Issue
Block a user