Class TestMode

    • Constructor Detail

      • TestMode

        public TestMode()
    • Method Detail

      • getTestEntitiesMap

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

        public Map<String,​TestEntity> estimate​(FilePath workspace,
                                                     @NonNull
                                                     TaskListener listener)
                                              throws InterruptedException
        This method will be called if no historical test results can be found. In that case, an estimate can be provided from the workspace content.
        Parameters:
        workspace - The current directory where tests are expected to be found.
        listener - The build listener if any output needs to be logged.
        Returns:
        a Map of test entities, keyed by their unique key
        Throws:
        InterruptedException - if the build get interrupted while executing this method.
      • getWord

        @NonNull
        public abstract String getWord()
        Returns:
        a description of the test entity type that is used for splitting, e.g. "cases"
      • getDefault

        public static TestMode getDefault()
        Returns:
        the default implementation for this extension point, if none is defined,