Skip to content
Snippets Groups Projects
Commit 750c83fd authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[templates] Suggest using pytest instead of nose for test runs

parent 15dfb97b
No related branches found
No related tags found
1 merge request!195Rename nosetests specific mark expression to be more...
Pipeline #45649 passed
...@@ -36,7 +36,9 @@ test: ...@@ -36,7 +36,9 @@ test:
imports: imports:
- {{ name }} - {{ name }}
commands: commands:
- nosetests --with-coverage --cover-package={{ name }} --cover-erase --cover-html-dir={{ project_dir }}/sphinx/coverage --cover-xml-file={{ project_dir }}/coverage.xml -sv {{ name }} # runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories
- pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect linkages -p $PREFIX {{ name }} # [not win]
...@@ -44,7 +46,8 @@ test: ...@@ -44,7 +46,8 @@ test:
requires: requires:
- bob-devel {{ bob_devel }}.*(% if group == 'beat' %) - bob-devel {{ bob_devel }}.*(% if group == 'beat' %)
- beat-devel {{ beat_devel }}.*(% endif %) - beat-devel {{ beat_devel }}.*(% endif %)
- nose - pytest
- pytest-cov
- coverage - coverage
- sphinx - sphinx
- sphinx_rtd_theme - sphinx_rtd_theme
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment