Skip to content
Snippets Groups Projects
Commit d2238bee authored by Yannick DAYER's avatar Yannick DAYER
Browse files

Merge branch 'pytest' into 'master'

Use pytest instead of nose.

See merge request !63
parents f47f92f7 bcc955f7
Branches
Tags
1 merge request!63Use pytest instead of nose.
Pipeline #63732 passed
......@@ -49,13 +49,14 @@ test:
commands:
# runs tests for package only, report only what is in the package
# creates html and xml reports and place them in specific directories
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- 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 -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- nose {{ nose }}
- pytest {{ pytest }}
- pytest-cov {{ 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.
Please register or to comment