Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
87699b6e
Commit
87699b6e
authored
Nov 23, 2021
by
Daniel Scheffler
Browse files
Removed everything related to nosetests.
parent
8869a764
Pipeline
#35163
failed with stage
in 4 minutes and 51 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
87699b6e
.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
)
...
...
setup.py
View file @
87699b6e
...
...
@@ -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'
,
...
...
tests/CI_docker/context/environment_py_tools_ds.yml
View file @
87699b6e
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment