Skip to content

Polish ArchitectureCheckTests #46822

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

Open
wants to merge 1 commit into
base: 3.4.x
Choose a base branch
from

Conversation

nosan
Copy link
Contributor

@nosan nosan commented Aug 13, 2025

At the moment, it's not possible to write a test to verify that a specific rule applies only to a specific SourceSet.
This PR rewrites ArchitectureCheckTests to support different sources and additionally adds functionality to configure prohibitObjectsRequireNonNull as well.

Additionally, with these changes, all tests will verify not only the checkArchitectureMain task but also checkArchitectureTest.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 13, 2025
@nosan nosan force-pushed the polish/architecture-rules branch 6 times, most recently from 44658b7 to 1fba276 Compare August 13, 2025 17:10
@nosan
Copy link
Contributor Author

nosan commented Aug 13, 2025

It is highly likely that there will be merge conflicts due to this c211b88 into main, so I prepared the main version for easy merging: main...nosan:architecture-rules-1

@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 14, 2025
@philwebb philwebb added this to the 3.4.x milestone Aug 14, 2025
@nosan nosan force-pushed the polish/architecture-rules branch 2 times, most recently from 8bb381f to df9a9ab Compare August 15, 2025 08:34
Prior to this commit, it wasn't possible to write a test to verify that
a specific ArchRule applied only to a specific SourceSet.

This PR rewrites `ArchitectureCheckTests` to support different sources
and also adds functionality to configure the plugin.

With these changes, all tests now verify not only the
`checkArchitectureMain` task but also `checkArchitectureTest`.

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
@nosan nosan force-pushed the polish/architecture-rules branch from df9a9ab to baa4270 Compare August 15, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants