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 unit testing #752

Conversation

AlexanderRichert-NOAA
Copy link
Contributor

@AlexanderRichert-NOAA AlexanderRichert-NOAA commented Jan 13, 2024

Description

This PR:

  • Adds unit testing with the CTest framework, plus code coverage checking with gcovr; and
  • adds a proposed update to the PR template that has checkboxes for contributors to certify that they are appropriately adding unit tests and documentation to the code.

I relocated the build/ directory in the CI to be under the fv3atm repo directory because it made the gcovr setup simpler. I've also added some logic that ensures that the gcovr report and doxygen output only get generated for one of the jobs, but still under GCC.yml to keep things consolidated.

Issue(s) addressed

Addresses #729

Testing

Tested on personal computer. All CI jobs successful.

Dependencies

none

Create separate developer.yml CI workflow
@AlexanderRichert-NOAA
Copy link
Contributor Author

@junwang-noaa please review. I suggest squash & merge.

@junwang-noaa
Copy link
Collaborator

@DusanJovic-NOAA Do we have an fv3 PR that will be committed in the upcoming ufs wm commites? Can we coordinate it with this one (ask the person to merge fv3atm when this PR is committed)? Thanks

@DusanJovic-NOAA
Copy link
Collaborator

I see #767 scheduled for merge in the ufs-weather-model commit queue. @grantfirl can you please merge this branch with your #767 PR. This PR updates github workflow to run unit tests.

@AlexanderRichert-NOAA
Copy link
Contributor Author

@DusanJovic-NOAA I've merged in the current develop branch so it includes your changes. Otherwise everything should basically be as it was before.

@climbfuji
Copy link
Collaborator

Pulled into #798

DusanJovic-NOAA pushed a commit that referenced this pull request Aug 8, 2024
…ow also includes #752) (#798)

* Convert GFS_grid DDT: use contiguous arrays instead of blocked data structures
* Add GCC-based CI build

---------

Co-authored-by: Alex Richert <[email protected]>
Co-authored-by: Dustin Swales <[email protected]>
@DusanJovic-NOAA
Copy link
Collaborator

Merged via #798

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.

6 participants