Closed coulas closed 5 months ago
Glad you like ArchUnit 😄 @Tag
is actually from the JUnit Jupiter API, while ArchUnit is a completely different JUnit 5 engine that just builds on the JUnit platform. As such ArchUnit will never react to things that come from org.junit.jupiter
.
However, ArchUnit offers almost the same API, you just have to use @ArchTag
instead of @Tag
. It should behave very similar to @Tag
in all respects.
Did this solve your problem?
Closing this for now, feel free to reopen if your issue persists!
Hello, First, thank you for your great work ! You are awesome :-)
Second, I was using a field of type ClassFileImporter and a @Tag("toRefactor") on my test classes to define some groups of tests. My pom.xml use surefire configured with a group attribute to select the groups I want.
When I switched from a JavaClasses field to @AnalyzeClasses, the tag filtering did not work anymore. I need tag filtering to separate breaking tests (functional and architecture validation) and non-breaking tests (list of refactoring in progress).
Does a JUnit5 tag's support is possible ?
RefactoringTest.java
Pom.xml: