fenixs
fenixs

Reputation: 11

How to scan target/test-classes with archunit or reflections in a multi-module application?

I am writing a test to check all test names, but it looks for reflection in the wrong places

public void namingTestMethodTest(JavaClasses classes) {
        methods().that().areAnnotatedWith(Test.class)
                .should().haveNameNotStartingWith("test")
                .andShould().haveNameEndingWith("Test").check(classes);
}

Upvotes: 1

Views: 251

Answers (0)

Related Questions