-
Notifications
You must be signed in to change notification settings - Fork 3
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
Move common test resources to a central location #23
Comments
Possibly related: While implementing test classes for How can this be referenced? |
Similarly, it should be possible to create a base class for |
Being able to depend on test resources of a project within the same build would resolve this, but I am having an extremely hard time figuring out how to do this. Posted on Stack Overflow: How to add dependencies to tests of another project in a multi-platform multi-project Kotlin build |
Since being able to depend on test resources of a project does not seem to have high priority, I already went ahead and moved common protocols test sources to the There might still be merit in refactoring |
Ran into this again while adding tests for |
Currently, integration tests of infrastructure building on top of CARP core needs to retest some of the post conditions of requests on application services. In case we include a test resources module to CARP core, we could expose post condition checks for operators to centralize these tests. |
More common test logic: This can currently not be centralized in |
Some of these issues have been resolved. I added a 🚀 to each underlying issue for which a suitable solution has been found. I added 👀 to those which still need attention. However, for the time being, given that Kotlin multiplatform doesn't allow linking to common test sources, I don't see an immediate solution, other than for each module (e.g., |
The limitation of not being able to publish test sources has to do with Kotlin multiplatform. But, is it perhaps possible to publish the JVM test sources separately instead? |
While adding tests for the new
carp.deployment
submodule, I had to create test classes and functions to initialize common study protocols.This is very similar to the test classes and objects in
carp.protocols
. Can these be moved to common test resources somehow? This might not be as straightforward due to the multiplatform setup (of course, creating yet another library would be an option, but this seems a bit excessive). Moving them to the existingcarp.test
library would not be possible since then a dependency oncarp.protocols
would need to be added tocarp.test
, resulting in a two-way dependency.The text was updated successfully, but these errors were encountered: