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

Add extension support #18

Merged
merged 7 commits into from
Jul 15, 2017
Merged

Add extension support #18

merged 7 commits into from
Jul 15, 2017

Conversation

codecholeric
Copy link
Collaborator

This PR adds some basic extension support to ArchUnit. In particular it's now possible, to register any custom ArchUnitExtension via standard ServiceLoader approach, and have ArchUnit forward evaluated rules to all those registered extensions, before failing any test because of rule violations.
This should in particular be a nice interface to plug in some visualization, e.g. to export classes and evaluated violations to some other format to display.

…ies basic constraints, like unique identifier
…rties, by prefixing them with 'extension.${extension-id}'
…d guard, that only enabled extensions (extension.${my-extension}.enabled=true) are called on rule evaluation.
@codecholeric codecholeric added this to the Release 0.5.0 milestone Jul 15, 2017
@codecholeric codecholeric self-assigned this Jul 15, 2017
@codecholeric codecholeric merged commit c9a7ec5 into master Jul 15, 2017
@codecholeric codecholeric deleted the add-extension-support branch July 25, 2017 19:18
codecholeric added a commit that referenced this pull request Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant