Package hudson.plugins.testng.util
Class TestResultHistoryUtil
java.lang.Object
hudson.plugins.testng.util.TestResultHistoryUtil
Utility methods around displaying results (esp history of results)
- Author:
- nullin
-
Method Summary
Modifier and TypeMethodDescriptionstatic TestNGResult
getPreviousBuildTestResults
(Run<?, ?> owner) Gets the latest build before this one and returns it's test result.static String
toSummary
(TestNGTestResultBuildAction action) Summarizes the delta in tests and also displays a list of failed/skipped tests and configuration methods.
-
Method Details
-
getPreviousBuildTestResults
Gets the latest build before this one and returns it's test result.We'd rather make this list when needed otherwise if we cache these values in the memory we will run out of memory
- Returns:
- previous build test results if the build exists and has a
TestNGTestResultBuildAction
, otherwise returns an emptyTestNGResult
object. Never returnsnull
.
-
toSummary
Summarizes the delta in tests and also displays a list of failed/skipped tests and configuration methods.The list is returned as an HTML unordered list.
- Parameters:
action
- TestNG build action- Returns:
- summarized
-