Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
750c83fd
Commit
750c83fd
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[templates] Suggest using pytest instead of nose for test runs
parent
15dfb97b
No related branches found
No related tags found
1 merge request
!195
Rename nosetests specific mark expression to be more...
Pipeline
#45649
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/templates/conda/meta.yaml
+5
-2
5 additions, 2 deletions
bob/devtools/templates/conda/meta.yaml
with
5 additions
and
2 deletions
bob/devtools/templates/conda/meta.yaml
+
5
−
2
View file @
750c83fd
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment