Class TestCaseName

  • All Implemented Interfaces:
    ExtensionPoint, Describable<TestMode>
    Direct Known Subclasses:
    TestClassAndCaseName

    public class TestCaseName
    extends TestMode
    Each exclusion/inclusion generates one line consisting of the test case name only.

    This is useful where a tool produces JUnit result XML containing unique test case names without any class prefix.

    • Constructor Detail

      • TestCaseName

        @DataBoundConstructor
        public TestCaseName()
    • Method Detail

      • isIncludeClassName

        public boolean isIncludeClassName()
      • getTestEntitiesMap

        @NonNull
        public Map<String,​TestEntity> getTestEntitiesMap​(@NonNull
                                                               hudson.tasks.junit.ClassResult classResult)
        Specified by:
        getTestEntitiesMap in class TestMode
        Parameters:
        classResult - The initial class result
        Returns:
        a Map of test entities, keyed by their unique key
      • getWord

        @NonNull
        public String getWord()
        Specified by:
        getWord in class TestMode
        Returns:
        a description of the test entity type that is used for splitting, e.g. "cases"