Skip to content

Commit c7d0a9c

Browse files
qfardetnjimenezd
authored andcommitted
test: migration from nose2 to pytest
1 parent 9854c57 commit c7d0a9c

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.coveragerc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[run]
2+
source = pandora
3+
omit =
4+
# Omit tests
5+
/tests/*

pytest.ini

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[pytest]
2+
addopts = -ra
3+
markers =
4+
notebook_tests: Notebook unit tests
5+
testpaths = tests
6+
norecursedirs = .git doc conf .gitlab
7+

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050

5151
REQUIREMENTS_EXTRA = {
52-
"dev": ["sphinx", "sphinx_rtd_theme", "sphinx_autoapi", "nose2", "pylint", "pre-commit", "mypy", "black"],
52+
"dev": ["sphinx", "sphinx_rtd_theme", "sphinx_autoapi", "pytest", "pytest-cov", "pylint", "pre-commit", "mypy", "black"],
5353
"sgm": ["pandora_plugin_libsgm==0.6.*"],
5454
"docs": ["sphinx", "sphinx_rtd_theme", "sphinx_autoapi"],
5555
}

sonar-project.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ sonar.sources=pandora
1212
sonar.tests=tests
1313

1414
# exclude files generated by coverage and nosetests
15-
sonar.exclusions=nosetests.xml,nose2-junit.xml
15+
#sonar.exclusions=nosetests.xml,nose2-junit.xml
1616

1717
# path to pylint analysis report (optional)
1818
sonar.python.pylint.reportPath=pylint-report.txt
1919

2020
# path to nosetests (TU) report (optional)
21-
sonar.python.xunit.reportPath=nose2-junit.xml
21+
sonar.python.xunit.reportPath=pytest-report.xml
2222

2323
# path to coverage report (optional)
2424
sonar.python.coverage.reportPaths=coverage.xml

0 commit comments

Comments
 (0)