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-mako \
|
||||
python3-mock \
|
||||
python3-nose \
|
||||
python3-pocketlint \
|
||||
python3-pycdlib \
|
||||
python3-pylint \
|
||||
python3-pyparted \
|
||||
python3-pytest \
|
||||
python3-pytest-cov \
|
||||
python3-toml \
|
||||
python3-semantic_version \
|
||||
python3-sphinx \
|
||||
|
5
Makefile
5
Makefile
@ -51,9 +51,8 @@ check:
|
||||
|
||||
test:
|
||||
@echo "*** Running tests ***"
|
||||
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m nose -v --with-coverage --cover-erase --cover-branches \
|
||||
--cover-package=pylorax --cover-package=lifted --cover-package=composer \
|
||||
--cover-inclusive \
|
||||
PYTHONPATH=$(PYTHONPATH):./src/ $(PYTHON) -m pytest -v --cov-branch \
|
||||
--cov=pylorax --cov=lifted --cov=composer \
|
||||
./tests/pylorax/ ./tests/composer/ ./tests/lifted/
|
||||
|
||||
coverage3 report -m
|
||||
|
Loading…
Reference in New Issue
Block a user