PerElemScorable

Interface used to indicate that the ConfigUnit allows the user to configure how the stage should contribute to the final score, via a accumulation per-element policy.

In this context, element may mean anything that the pipeline stage uses to determine its score, such as passing/failing test cases, static analysis warnings, etc. Refer to the documentation of each pipeline stage class for more detail.

The main difference between this and TotalScorable is that this does not require the stage to have the notion of a "total score". For example, static analysis stages may use this stage to provide a more flexible scoring strategy, as each analysis warning can deduct some marks up to a certain limit.

Types

Link copied to clipboard
data class Policy(val initialScore: Double, val scorePerElem: Double, val limit: Double?)

The policy for score accumulation.

Properties

Link copied to clipboard

The policy to use for score accumulation.