Skip to content

TestResultObject ​

<TestResultObject> -- VerificationTest's TestResultObject (https://github.com/enumeratio/enumeratio/wiki/Computation §5.4): the held input as an In row, the actual output as an Out row, and a badge for the outcome (Success ✓ / Failure ≠, expected shown / Error ! / Aborted ∅), plus the time used and, when set, the TestID. Reuses <Out> (label/label-menu) for both rows rather than re-typesetting anything itself.

Demos·packages/components/src/notatio-test-result-object.ts· draws TestResultObject

Props

PropTypeDefaultNotes
inputstring""The held input, as Epsil source.
actualstring""The evaluated result, as Epsil source; absent on Error/Aborted.
expectedstring""What it was compared against, as Epsil source; absent when there was none.
outcomeOutcome""Success, Failure, Error or Aborted.reflects
timenumber | undefinedundefinedAbsoluteTimeUsed, in seconds.
testId
attribute test-id
string""TestID, when the test named one.

As a web component

Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <notatio-test-result-object> in any HTML. Attributes are kebab-case and always strings; the props table above names each one's attribute where it differs from its prop.