public abstract class AbstractUnitTestsRule extends Object implements AggregatableRule<Integer>
Constructor and Description |
---|
AbstractUnitTestsRule() |
Modifier and Type | Method and Description |
---|---|
RuleResult<?> |
aggregate(Collection<RuleResult<Integer>> results)
Aggregates several rule results calculated by the same rule into one.
|
RuleResult<Integer> |
evaluate(hudson.model.AbstractBuild<?,?> build)
Evaluate the build and return the points for it
|
RuleResult<Integer> |
evaluate(hudson.model.AbstractBuild<?,?> previousBuild,
hudson.model.AbstractBuild<?,?> build)
Evaluates the rule for the current build compared to a previous build.
|
protected abstract RuleResult<Integer> |
evaluate(hudson.tasks.test.AbstractTestResultAction<?> testResult,
hudson.tasks.test.AbstractTestResultAction<?> previousTestResult) |
protected abstract String |
getResultDescription(Integer testDiff) |
public final RuleResult<Integer> evaluate(hudson.model.AbstractBuild<?,?> previousBuild, hudson.model.AbstractBuild<?,?> build)
AggregatableRule
evaluate
in interface AggregatableRule<Integer>
previousBuild
- the previous build with usable results (may be null!)build
- the current build (may be null!)public final RuleResult<?> aggregate(Collection<RuleResult<Integer>> results)
AggregatableRule
aggregate
in interface AggregatableRule<Integer>
public final RuleResult<Integer> evaluate(hudson.model.AbstractBuild<?,?> build)
Rule
evaluate
in interface AggregatableRule<Integer>
evaluate
in interface Rule
build
- build to calculate points forprotected abstract RuleResult<Integer> evaluate(hudson.tasks.test.AbstractTestResultAction<?> testResult, hudson.tasks.test.AbstractTestResultAction<?> previousTestResult)
Copyright © 2004-2015. All Rights Reserved.