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 automated code coverage measurement and reporting #836

Merged
merged 23 commits into from
Sep 28, 2021

Conversation

rafmudaf
Copy link
Collaborator

@rafmudaf rafmudaf commented Sep 20, 2021

Feature or improvement description
This pull request adds automated code coverage measurement via gcov and reporting with gcovr to Codecov.io. The regression test and unit test coverages are tracked individually. Due to compiler optimizations that transform the source code, the test cases measured in this code coverage reporting must be compiled in debug mode. Therefore, we do not include the OpenFAST glue-code regression tests in this reporting. The unit tests, module regression tests, and C++ API regression tests are included.

A live version of the code coverage dashboard can be seen at https://app.codecov.io/gh/rafmudaf/openfast/. This is the dashboard for my fork of OpenFAST, but a new one will automatically be created when the openfast/openfast repository sends its first coverage report to Codecov.io.

Related issue, if one exists
None

Impacted areas of the software
Automated tests


TODO

  • Add badge to README
  • Documentation!

@rafmudaf rafmudaf self-assigned this Sep 20, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2021

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff           @@
##             dev     #836   +/-   ##
======================================
  Coverage       ?   11.23%           
======================================
  Files          ?      207           
  Lines          ?   308246           
  Branches       ?   176935           
======================================
  Hits           ?    34634           
  Misses         ?   229910           
  Partials       ?    43702           
Flag Coverage Δ
regtests 11.11% <0.00%> (?)
unittests 2.64% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out 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 0543df2...36d4d6b. Read the comment docs.

@rafmudaf rafmudaf marked this pull request as ready for review September 23, 2021 21:15
@rafmudaf rafmudaf merged commit 109002e into OpenFAST:dev Sep 28, 2021
@rafmudaf rafmudaf deleted the cc branch September 28, 2021 20:52
@rafmudaf rafmudaf mentioned this pull request Mar 2, 2022
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants