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

(closes #1796) Refactor LFRic builtins tests #2640

Merged
merged 14 commits into from
Jul 18, 2024

Conversation

sergisiso
Copy link
Collaborator

No description provided.

@sergisiso sergisiso changed the title (closes #1796) Refactor builtin tests (closes #1796) Refactor LFRic builtins tests Jul 2, 2024
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.86%. Comparing base (29bba60) to head (f69f3ee).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2640   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files         352      352           
  Lines       48509    48509           
=======================================
  Hits        48444    48444           
  Misses         65       65           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergisiso sergisiso force-pushed the 1796_refactor_builtin_tests branch from 72e5893 to 9e1dc25 Compare July 2, 2024 10:23
@sergisiso
Copy link
Collaborator Author

This is ready for review, this PR adds metadata checks to the LFRic builtin tests (which I think were missing) and removes invoke generation checks (which I think are unneeded since its not responsibility of these classes). One for @arporter or @TeranIvy

Copy link
Member

@arporter arporter left a comment

Choose a reason for hiding this comment

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

Looks good Sergi. I won't check the integration tests this time around as the only changed code is in the tests. Main request is to add compilation testing where possible to the modified tests.
No need to update docs or tutorials.

@sergisiso
Copy link
Collaborator Author

@arporter This is ready for another look, CI-permiting. In addition to your comments, I also noticed there was a separate test file for integer builtins. Since this are empty classes, I thought it was simpler to test them in combination with their parent, and instead of testing the lowering (which they don't alter), I check the metadata, which is the important differing part, and its string (see last commit).

Copy link
Member

@arporter arporter left a comment

Choose a reason for hiding this comment

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

All requested changes have been made (or refuted). Good to actually reduce the size of the repo rather than increase it :-)
Integration tests are running currently.

@arporter
Copy link
Member

Integration tests were green.

@arporter arporter merged commit 4560b8b into master Jul 18, 2024
13 checks passed
@arporter arporter deleted the 1796_refactor_builtin_tests branch July 18, 2024 12:51
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.

2 participants