-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make tests included via
ArchTests
report outer class as test locati…
…on (#1279) So far, if we include rules from other test classes, e.g. ``` @AnalyzeClasses(..) class ExampleTest { @archtest static final ArchTests nested = ArchTests.in(Other.class); } ``` then the nested class (`Other.class` in this case) will be used as test location. This can cause confusion, because by this if `Other.class` is included in two separate test classes, analyzing different locations via `@AnalyzeClasses`, the results will be reported for the same test class `Other.class`. We now report the outermost class that started the test (the one with `@AnalyzeClasses) as the test location for both JUnit 4 and JUnit 5. To make it easy to understand through which path a rule is included in more complex scenarios, we extend the display name to include the path of nested classes. Resolves: #452
- Loading branch information
Showing
11 changed files
with
218 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.