Docs · API reference · Motus.Abstractions

CoverageOptions Class#

Configuration for the built-in code coverage collector hook.

public sealed record CoverageOptions : System.IEquatable<Motus.Abstractions.CoverageOptions>

Inheritance System.Object → CoverageOptions

Implements System.IEquatable<CoverageOptions>

Properties#

CssRuleThreshold Property#

Minimum acceptable CSS rule usage percentage (0-100). When set and the aggregated run CSS coverage falls below this value, the run fails with a non-zero exit code.

public System.Nullable<double> CssRuleThreshold { get; init; }

Property Value#

System.Nullable<System.Double>

Enable Property#

Whether the coverage collector is enabled. Default: false.

public bool Enable { get; init; }

Property Value#

System.Boolean

IncludeCss Property#

Whether to collect CSS rule usage coverage via the CDP CSS domain. Default: true.

public bool IncludeCss { get; init; }

Property Value#

System.Boolean

IncludeJavaScript Property#

Whether to collect JavaScript coverage via the CDP Profiler domain. Default: true.

public bool IncludeJavaScript { get; init; }

Property Value#

System.Boolean

JsFunctionThreshold Property#

Minimum acceptable JavaScript function coverage percentage (0-100). Reserved for future use; current aggregator emits line-level stats only.

public System.Nullable<double> JsFunctionThreshold { get; init; }

Property Value#

System.Nullable<System.Double>

JsLineThreshold Property#

Minimum acceptable JavaScript line coverage percentage (0-100). When set and the aggregated run line coverage falls below this value, the run fails with a non-zero exit code.

public System.Nullable<double> JsLineThreshold { get; init; }

Property Value#

System.Nullable<System.Double>