Annotation Type UseTechnicalNames

  • @Retention(RUNTIME)
    public @interface UseTechnicalNames
    @UseTechnicalNames specifies that technical names should be used instead of display names when running a test suite on the JUnit Platform.

    By default, display names will be used for test artifacts in reports and graphical displays in IDEs; however, when a JUnit Platform test suite is executed with a build tool such as Gradle or Maven, the generated test report may need 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.

    Note that the presence of @UseTechnicalNames overrides any custom display name configured for the suite via @SuiteDisplayName.

    JUnit 4 Suite Support

    Test suites can be run on the JUnit Platform in a JUnit 4 environment via @RunWith(JUnitPlatform.class).

    See Also:
    SuiteDisplayName, JUnitPlatform