Replies: 1 comment 1 reply
-
This is indeed a current limitation, cf. #641. You might be more lucky by using @ArchTest
void ideExecutableArchTestWrapper(JavaClasses classes) {
STATIC_FIELD_ARCH_RULE.check(classes);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For normal JUnit tests (methods annotated with
@Test
) it's usually possible to right click on them and run them as JUnit test, which means only that test method is run, not all tests in the class. Although I like the succinctness of defining rules as static variables and annotating them with@ArchTest
, it's inconvenient / wasteful that I cannot run a single rule, but I am rather forced to run all tests in the class. I'm not sure if this is merely an IDE limitation (Eclipse in this case), or if there is something that can be done from ArchUnit's side to support this (in the latter case, I could open an issue about it).Is there maybe a way I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions