TestimoX

API Reference

Class

ScoringEngine

Namespace TestimoX.Scoring
Assembly TestimoX
Modifiers static

Simple scoring engine that converts rule outcomes to a normalized score.

Inheritance

  • Object
  • ScoringEngine

Methods

public static ScoringResult Compute(IEnumerable<RuleComplete> rules) #
Returns: ScoringResult

Computes a normalized score and category breakdown from completed rules.

Parameters

rules System.Collections.Generic.IEnumerable{TestimoX.Definitions.RuleComplete} requiredposition: 0
Completed rules (with test results).

Returns

Aggregated scoring result.

InferScoreKindFromCategories(TestimoX.Definitions.Category[] arg1) #

Infers a default score domain from rule categories when neither test nor rule specify it.

Parameters

arg1 TestimoX.Definitions.Category[] required

Fields

DefaultPenalty #

Maps outcome severity to base penalty units. This scales non‑linearly to avoid over‑penalizing informational and low‑impact findings while still reflecting high‑risk failures.

DiminishingAfter #

Number of failed tests per rule before diminishing returns apply.

DiminishingFactor #

Diminishing factor applied to failures beyond DiminishingAfter.

MaxUnitsPerRule #

Maximum penalty units attributed to a single rule (any kind), to avoid dominance.

MaxUnitsPerKindPerRule #

Maximum penalty attributed to a single rule per scoring dimension (Security/Health).

BudgetPerTest #

Budget growth per contributing test, used to normalize scores across small/large runs.