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

@ArchIgnore is ignored on ArchRules fields #29

Closed
codecholeric opened this issue Oct 2, 2017 · 0 comments · Fixed by #35
Closed

@ArchIgnore is ignored on ArchRules fields #29

codecholeric opened this issue Oct 2, 2017 · 0 comments · Fixed by #35

Comments

@codecholeric
Copy link
Collaborator

ArchRule suites ignore the @ArchIgnore annotation, e.g.:

public class MyRules {
    @ArchTest
    public static final ArchRule someRule = ...
}
@RunWith(ArchUnitRunner.class)
// ...
public class MyArchTest {
    @ArchTest
    @ArchIgnore // This is ignored
    public static final ArchRules rules = ArchRules.in(MyRules.class);
}

Expected behavior when running MyArchTest:
All rules within MyRules are skipped

Actual behavior:
Rules within MyRules run anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant