Skip to content
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

add code coverage reports #1422

Conversation

ltalirz
Copy link
Member

@ltalirz ltalirz commented Apr 13, 2018

Fix #1412

This PR

  • runs coverage tests on travis (combining output of all tests that are run)
  • uploads the coverage reports to coverage.io
  • Automatic coverage info will be shown upon every new commit

I propose to not to enforce any automatic rules on coverage for the moment - let's first see whether there are any glitches.
Of course, everybody is encouraged to take this information into account when approving pull requests.

ltalirz added 3 commits April 13, 2018 10:35
 * this adds a coverage report to the individual travis runs
 * -a option appends output of successive runs

Note: Running coverage directly via `coverage run` is recommended over
fiddling with plugins, see
https://stackoverflow.com/a/38243662/1069467
 * codecov has problems with non-default .coverage paths,
   thus reverted back to placing .coverage in the aiida_core folder
   codecov/codecov-python#120

 * adjusted color scale from 70..100 to 30..100 to provide more
   information on our subpar code coverage
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (release_v0.12.0@c2f1f76). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                Coverage Diff                 @@
##             release_v0.12.0    #1422   +/-   ##
==================================================
  Coverage                   ?   54.42%           
==================================================
  Files                      ?      246           
  Lines                      ?    32440           
  Branches                   ?        0           
==================================================
  Hits                       ?    17655           
  Misses                     ?    14785           
  Partials                   ?        0

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 c2f1f76...8be6cde. Read the comment docs.

Copy link
Member

@giovannipizzi giovannipizzi left a comment

Choose a reason for hiding this comment

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

Thanks, awesome!

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Looks great @ltalirz !

@sphuber sphuber merged commit 0dda0c0 into aiidateam:release_v0.12.0 Apr 13, 2018
@ltalirz ltalirz deleted the issue_1412_add_coverage_report_squashed branch June 26, 2018 11:45
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.

4 participants