API Reference
ScoringEngine
Simple scoring engine that converts rule outcomes to a normalized score.
Inheritance
- Object
- ScoringEngine
Methods
public static ScoringResult Compute(IEnumerable<RuleComplete> rules) #ScoringResultComputes a normalized score and category breakdown from completed rules.
Parameters
- rules System.Collections.Generic.IEnumerable{TestimoX.Definitions.RuleComplete}
- 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[]
Inherited Methods
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.