@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited @Documented @API(value=Maintained) public @interface UseTechnicalNames
@UseTechnicalNames
specifies that technical names should be
used instead of display names when running a test suite via
@RunWith(JUnitPlatform.class)
.
By default, display names will be used for test artifacts; however,
when the JUnitPlatform
runner is used to execute tests with a build
tool such as Gradle or Maven, the generated test report often needs to include
the technical names of test artifacts — for example, fully
qualified class names — instead of shorter display names like
the simple name of a test class or a custom display name containing special
characters. To enable technical names, simply declare the
@UseTechnicalNames
annotation alongside @RunWith(JUnitPlatform.class)
.
JUnitPlatform