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

Refactor testWrapping.cpp #3544

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Refactor testWrapping.cpp #3544

merged 3 commits into from
Sep 13, 2023

Conversation

nickbianco
Copy link
Member

@nickbianco nickbianco commented Sep 11, 2023

Relevant to #3387, #3389

Brief summary of changes

This PR refactors testWrapping.cpp, which was previously a bit of a mess, to now use the Catch2 framework. The new structure should make it easier to expand the test suite for wrapping code without having to create a bunch of new files. To that end, I've moved the tests from testMuscleLengthRegression.cpp into testWrapping.cpp.

There was a lot of code that wasn't being tested at all. I've temporarily moved this code to a new file, sandboxWrapping.cpp, until we decide what to do with it.

Looking for feedback on...

What should we do with the unused code moved to sandboxWrapping.cpp? Change the filename (i.e., "deprecated") so the code is saved? Revive the unused tests? Delete it altogether?

CHANGELOG.md (choose one)

  • no need to update because...changes to testing framework.

This change is Reviewable

@nickbianco
Copy link
Member Author

@pepbos, @adamkewley, since you've been recently adding new wrapping tests, you might have some thoughts/opinions here.

@nickbianco nickbianco marked this pull request as ready for review September 11, 2023 21:28
@aymanhab
Copy link
Member

@nickbianco I'd name the file deprecated for future reference or restoration. Most of these unused tests I'm not familiar with but a refactoring of unused tests should probably need no more than one reviewer. If actual tests are preserved then feel free to merge

Copy link
Member

@aymanhab aymanhab left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 6 files at r1, all commit messages.
Reviewable status: 4 of 6 files reviewed, all discussions resolved

@adamkewley
Copy link
Contributor

Seems reasonable - assuming the test suite wasn't testing anything too useful 👍

@nickbianco nickbianco merged commit 3f81ce6 into main Sep 13, 2023
6 of 7 checks passed
@nickbianco nickbianco deleted the update_wrapping_tests branch September 13, 2023 16:50
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