Class PackageResult

    • Constructor Detail

      • PackageResult

        public PackageResult​(TestResult parent,
                             String packageName)
    • Method Detail

      • getRun

        public Run<?,​?> getRun()
        Overrides:
        getRun in class TestObject
        Returns:
        the run in which this test was executed.
      • getName

        @Exported(visibility=999)
        public String getName()
        Description copied from class: TestObject
        Gets the name of this object.
        Overrides:
        getName in class TestObject
        Returns:
        the name of this object.
      • findCorrespondingResult

        public TestResult findCorrespondingResult​(String id)
        Description copied from class: TestObject
        Find the test result corresponding to the one identified by id within this test result.
        Specified by:
        findCorrespondingResult in class TestObject
        Parameters:
        id - The path to the original test result
        Returns:
        A corresponding test result, or null if there is no corresponding result.
      • getTitle

        public String getTitle()
        Description copied from class: TestResult
        Gets the human readable title of this result object.
        Overrides:
        getTitle in class TestResult
        Returns:
        the human readable title of this result object.
      • getDuration

        public float getDuration()
        Description copied from class: TestResult
        Time it took to run this test. In seconds.
        Overrides:
        getDuration in class TestResult
        Returns:
        the time in seconds the test ran.
      • getPassCount

        @Exported
        public int getPassCount()
        Description copied from class: TestResult
        Gets the total number of passed tests.
        Overrides:
        getPassCount in class TestResult
        Returns:
        the total number of passed tests.
      • getFailCount

        @Exported
        public int getFailCount()
        Description copied from class: TestResult
        Gets the total number of failed tests.
        Overrides:
        getFailCount in class TestResult
        Returns:
        the total number of failed tests.
      • getSkipCount

        @Exported
        public int getSkipCount()
        Description copied from class: TestResult
        Gets the total number of skipped tests.
        Overrides:
        getSkipCount in class TestResult
        Returns:
        the total number of skipped tests.
      • getDynamic

        public Object getDynamic​(String name,
                                 org.kohsuke.stapler.StaplerRequest req,
                                 org.kohsuke.stapler.StaplerResponse rsp)
        Overrides:
        getDynamic in class TestObject
      • hasChildren

        public boolean hasChildren()
        Whether this test result has children.
        Specified by:
        hasChildren in class TabulatedResult
      • getFailedTests

        public List<CaseResult> getFailedTests()
        Returns a list of the failed cases, in no particular sort order
        Specified by:
        getFailedTests in class MetaTabulatedResult
        Returns:
        the children of this test result, if any, or an empty collection
      • getFailedTestsSortedByAge

        public List<CaseResult> getFailedTestsSortedByAge()
        Returns a list of the failed cases, sorted by age.
        Returns:
        a list of the failed cases, sorted by age.
      • getPassedTests

        public List<CaseResult> getPassedTests()
        Gets the "children" of this test result that passed
        Overrides:
        getPassedTests in class TestResult
        Returns:
        the children of this test result, if any, or an empty collection
      • getSkippedTests

        public List<CaseResult> getSkippedTests()
        Gets the "children" of this test result that were skipped
        Overrides:
        getSkippedTests in class TestResult
        Returns:
        the children of this test result, if any, or an empty list
      • isPassed

        public boolean isPassed()
        Overrides:
        isPassed in class TestResult
        Returns:
        true if every test was not skipped and every test did not fail, false otherwise.
      • tally

        public void tally()
        Recount my children
        Overrides:
        tally in class TestResult
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object