-
Notifications
You must be signed in to change notification settings - Fork 146
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
Allow using @ApplicationModuleTest
outside of a module package
#466
Comments
We could / would need to add the following attributes to
|
@odrotbohm can I draft a PR for this issue? |
Moved integration test to integration tests module.
This should now work. Thanks, @lukasdo, for providing the PR. |
Moved integration test to integration tests module.
Thanks @lukasdo for your work |
Discussed in #413
Originally posted by marinusgeuze December 11, 2023
Hi,
In our project, we have organized our tests into different root packages based on their types, such as unit tests, integration tests, and end-to-end tests. Consequently, our Spring Boot Integration Tests are placed in a package different from their corresponding modules, leading to the occurrence of the “Package %s is not part of any module!” error.
To provide more context, our test package structure looks something like this:
We are seeking a solution to explicitly define the module to which a Spring Boot Integration Test belongs. This as part of the
ApplicationModuleTest
annotation. Or ideally, we would like to add theit.com.test
package to the module. Is there a way to achieve this?We acknowledge that a possible recommendation might be to group tests within the module boundaries, like
com.test..unit.*UnitTest
,com.test..it.*IntegrationTest
, etc. However, this is not a feasible option for us due to the configuration constraints of our test frameworks.The text was updated successfully, but these errors were encountered: