KoverVerifyRule

Describes a single Kover verification task rule (that is part of Gradle's verify), with the following configurable parameters:

  • Which classes and packages are included or excluded into the current rule

  • What coverage bounds are enforced by current rules

  • What kind of bounds (branches, lines, bytecode instructions) are checked by bound rules.

Functions

Link copied to clipboard
abstract fun bound(config: Action<KoverVerifyBound>)

Specifies the set of verification rules that control the coverage conditions required for the verification task to pass.

abstract fun bound(minValue: Int, maxValue: Int, coverageUnits: CoverageUnit = CoverageUnit.LINE, aggregationForGroup: AggregationType = AggregationType.COVERED_PERCENTAGE)

A shortcut for

Link copied to clipboard
abstract fun maxBound(maxValue: Int)
abstract fun maxBound(maxValue: Provider<Int>)
abstract fun maxBound(maxValue: Int, coverageUnits: CoverageUnit = CoverageUnit.LINE, aggregationForGroup: AggregationType = AggregationType.COVERED_PERCENTAGE)

A shortcut for

Link copied to clipboard
abstract fun minBound(minValue: Int)
abstract fun minBound(minValue: Provider<Int>)
abstract fun minBound(minValue: Int, coverageUnits: CoverageUnit = CoverageUnit.LINE, aggregationForGroup: AggregationType = AggregationType.COVERED_PERCENTAGE)

A shortcut for

Properties

Link copied to clipboard
abstract val disabled: Property<Boolean>

Specifies that the rule is checked during verification.

Link copied to clipboard
abstract val groupBy: Property<GroupingEntityType>

Specifies by which entity the code for separate coverage evaluation will be grouped. GroupingEntityType.APPLICATION by default.