hudson.plugins.emma
Class Rule
java.lang.Object
hudson.plugins.emma.Rule
- All Implemented Interfaces:
- hudson.ExtensionPoint, Serializable
- Direct Known Subclasses:
- LineCoveragePerSourceFileRule
public abstract class Rule
- extends Object
- implements Serializable, hudson.ExtensionPoint
Rule object encapsulates the logic to mark CoverageObjects as "failed".
Such logic is used to mark builds as unstable when certain condition is met.
For example, one can define a rule where "line 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 classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Constructor Summary |
Rule()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rule
public Rule()
enforce
public abstract void enforce(CoverageReport report,
hudson.model.TaskListener listener)
Copyright © 2004-2012 Hudson. All Rights Reserved.