Class HistoryAggregatedFlakyTestResultAction
java.lang.Object
com.google.jenkins.flakyTestHandler.plugin.HistoryAggregatedFlakyTestResultAction
- All Implemented Interfaces:
Action
,ModelObject
Action for aggregate and display information for flaky history for all the tests
- Author:
- Qingzhou Luo
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class for flaky information for one single teststatic class
A class which augmentsHistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats
with a revision string. -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.common.base.Function<Map<String,
HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats>, HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> Function to aggregate flaky stats over revisions -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregateOneBuild
(Run<?, ?> build) Aggregate flaky runs one previous build and put results into a map between test name and its map between scm revisions and aggregated flaky stats for that revisionvoid
doShowAll
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) Get filtered tests to display on the project page.boolean
-
Field Details
-
REVISION_STATS_MAP_TO_AGGREGATED_STATS
public static final com.google.common.base.Function<Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats>, REVISION_STATS_MAP_TO_AGGREGATED_STATSHistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> Function to aggregate flaky stats over revisions
-
-
Constructor Details
-
HistoryAggregatedFlakyTestResultAction
-
-
Method Details
-
aggregateOneBuild
Aggregate flaky runs one previous build and put results into a map between test name and its map between scm revisions and aggregated flaky stats for that revision- Parameters:
build
- the build to be aggregated
-
getAggregatedTestFlakyStatsWithRevision
public Map<String,Map<String, getAggregatedTestFlakyStatsWithRevision()HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats>> -
getOnlyShowFlakyTests
public boolean getOnlyShowFlakyTests() -
doShowAll
public void doShowAll(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException - Throws:
IOException
javax.servlet.ServletException
-
getAggregatedFlakyStats
public Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> getAggregatedFlakyStats() -
getFilteredAggregatedFlakyStats
public Map<String,HistoryAggregatedFlakyTestResultAction.SingleTestFlakyStats> getFilteredAggregatedFlakyStats()Get filtered tests to display on the project page. Users can decide whether to show all tests or just flaky tests- Returns:
- the filtered tests
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-