Skip to content
Snippets Groups Projects
Commit 87699b6e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Removed everything related to nosetests.

parent 8869a764
No related branches found
No related tags found
1 merge request!33migrate test calls to pytest
Pipeline #35163 failed
.PHONY: clean clean-test clean-pyc clean-build docs help nosetests pytest
.PHONY: clean clean-test clean-pyc clean-build docs help pytest
.DEFAULT_GOAL := help
define BROWSER_PYSCRIPT
import os, webbrowser, sys
......@@ -52,8 +52,6 @@ clean-test: ## remove test and coverage artifacts
rm -fr report.html
rm -fr report.xml
rm -fr coverage.xml
rm -fr nosetests.html
rm -fr nosetests.xml
lint: ## check style with flake8
flake8 --max-line-length=120 py_tools_ds tests > ./tests/linting/flake8.log || \
......@@ -80,13 +78,6 @@ coverage: ## check code coverage quickly with the default Python
coverage html
#$(BROWSER) htmlcov/index.html
nosetests: clean-test ## Runs nosetests with coverage, xUnit and nose-html-output
## - puts the coverage results in the folder 'htmlcov'
## - generates 'nosetests.html' (--with-html)
## - generates 'nosetests.xml' (--with-xunit) which is currently not visualizable by GitLab
nosetests -vv --with-coverage --cover-package=py_tools_ds --cover-erase --cover-html --cover-html-dir=htmlcov \
--with-html --with-xunit --rednose --force-color
pytest: clean-test ## Runs pytest with coverage and creates coverage and test report
## - puts the coverage results in the folder 'htmlcov'
## - generates cobertura 'coverage.xml' (needed to show coverage in GitLab MR changes)
......
......@@ -48,8 +48,7 @@ requirements = [
'spectral'
]
setup_requirements = ['setuptools']
test_requirements = requirements + ["coverage", "gdal", "nose", "nose2", "nose-htmloutput", "pytest", "pytest-cov",
"pytest-reporter-html1", "rednose", "shapely", "urlchecker"]
test_requirements = requirements + ["gdal", "pytest", "pytest-cov", "pytest-reporter-html1", "shapely", "urlchecker"]
setup(
name='py_tools_ds',
......
......@@ -16,17 +16,12 @@ dependencies:
- pip:
- spectral
- coverage
- flake8
- nose
- nose2
- nose-htmloutput
- pycodestyle
- pydocstyle
- pylint
- pytest
- pytest-cov
- pytest-reporter-html1
- rednose
- sphinx-argparse
- urlchecker
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment