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

Make reusable minilcm tests out of FW data tests #1128

Merged
merged 18 commits into from
Oct 21, 2024
Merged

Conversation

hahn-kev
Copy link
Collaborator

@hahn-kev hahn-kev commented Oct 16, 2024

There were a number of tests in the FW data bridge test project that could be generalized and used for both fwdata and crdt backends. So I made a new MiniLcm.Tests project, moved the code in there and made them abstract. Then extended those abstract tests in both the fwdata and crdt test projects.

You'll notice I didn't migrate the UpdateComplexFormsTests this is due to them being over specified on how we do updates and it turns out that doesn't work well for CRDTs

waiting on #1114 before merging this

@hahn-kev hahn-kev marked this pull request as ready for review October 21, 2024 03:14
Copy link
Contributor

@rmunn rmunn left a comment

Choose a reason for hiding this comment

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

Having tests in the *TestBase classes threw me at first, until I realized that it was a way of making the same tests run in several different environments. I wonder if there's a different way of achieving this without putting code into the abstract base class. But I don't want to hold up the PR insisting on a specific code style.

@hahn-kev
Copy link
Collaborator Author

Yeah I looked into it, there are other ways to do it, however they would require a project to reference both Crdt and FwData. This was also a pattern I saw other people suggesting as well, so I decided it was acceptable.

@hahn-kev hahn-kev merged commit cbdf94d into develop Oct 21, 2024
8 checks passed
@hahn-kev hahn-kev deleted the chore/mini-lcm-tests branch October 21, 2024 05: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.

2 participants