Class Rule
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastcoverage.Rule
-
- All Implemented Interfaces:
ExtensionPoint
,Serializable
- Direct Known Subclasses:
StatementCoveragePerSourceFileRule
public abstract class Rule extends Object implements Serializable, ExtensionPoint
Rule object encapsulates the logic to markCoverageObject
s as "failed". Such logic is used to mark builds as unstable when certain condition is met.For example, one can define a rule where "MCDC coverage must be better than 50% for any class", and if this rule is violated, the build will be marked as unstable.
The rule instances are persisted as a part of
Build
, so make sure to make your class serializable. This is so that we can consistently mark coverage results even if the job configuration changes.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
enforce(CoverageReport report, TaskListener listener)
-
-
-
Method Detail
-
enforce
public abstract void enforce(CoverageReport report, TaskListener listener)
-
-