Skip to content

CI: Add doctests to pytest script #2449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2018
Merged

CI: Add doctests to pytest script #2449

merged 2 commits into from
Feb 18, 2018

Conversation

effigies
Copy link
Member

Creating a PR just to get Circle moving. I'm not sure if this will make any difference to coverage.

@codecov-io
Copy link

codecov-io commented Feb 18, 2018

Codecov Report

Merging #2449 into master will increase coverage by 7%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #2449     +/-   ##
=========================================
+ Coverage   59.78%   66.78%     +7%     
=========================================
  Files         328      328             
  Lines       42456    42456             
  Branches     5275     5275             
=========================================
+ Hits        25382    28356   +2974     
+ Misses      16691    13412   -3279     
- Partials      383      688    +305
Flag Coverage Δ
#smoketests 50.68% <ø> (ø) ⬆️
#unittests 64.23% <ø> (+7.14%) ⬆️
Impacted Files Coverage Δ
nipype/utils/profiler.py 43.1% <0%> (-1.15%) ⬇️
nipype/interfaces/mipav/generate_classes.py 0% <0%> (ø) ⬆️
nipype/interfaces/fsl/model.py 80.46% <0%> (+0.37%) ⬆️
nipype/utils/filemanip.py 76.13% <0%> (+0.71%) ⬆️
nipype/algorithms/metrics.py 52.94% <0%> (+0.8%) ⬆️
nipype/algorithms/misc.py 45.9% <0%> (+1.05%) ⬆️
nipype/interfaces/fsl/dti.py 76.22% <0%> (+1.13%) ⬆️
nipype/pipeline/plugins/sge.py 18.45% <0%> (+1.28%) ⬆️
nipype/interfaces/freesurfer/utils.py 62.94% <0%> (+1.69%) ⬆️
nipype/interfaces/fsl/preprocess.py 82.6% <0%> (+1.69%) ⬆️
... and 81 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acd1a4c...5f365a6. Read the comment docs.

py.test -v --junitxml=${WORKDIR}/tests/pytests_py${PYTHON_VERSION}.xml \
--cov nipype --cov-config /src/nipype/.coveragerc \
--cov-report xml:${WORKDIR}/tests/coverage_py${PYTHON_VERSION}.xml \
-c ${TESTPATH}/pytest.ini ${TESTPATH}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical bit here is the -c.

@effigies
Copy link
Member Author

Looks like we weren't running doctests on Circle, so they were missing from coverage. Doesn't seem to add to test runtime, so I'll go ahead and merge.

@effigies effigies merged commit a374998 into master Feb 18, 2018
@effigies effigies deleted the effigies-patch-2 branch February 18, 2018 03:15
@oesteban
Copy link
Contributor

Nice catch!

@effigies effigies added this to the 1.0.1 milestone Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants