AI Components / Test Runner
Test Runner
AI evaluation test results panel built from cg-card / cg-text / cg-button. Pass/fail/running/pending status icons, summary bar with combined progress, expandable expected/actual details, and a "Run All" CTA.
ai-devops v0.5.0
Playground
Examples
Eval results with failures
<ai-test-runner title="Model Evaluation" style="max-width:520px;"></ai-test-runner> Import
import { AiTestRunner } from '@cognivo/components'; // Or tree-shake: import '@cognivo/components/ai-test-runner'; Per-component imports ship only that component (~8 kB gzip).
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
tests | {name, status, duration?, score?, expected?, actual?}[] | — | Test entries |
title | string | "Test Results" | Panel header title |
Events
| Event | Detail | Description |
|---|---|---|
ai-test-run | {tests} | "Run All" clicked — payload is the array of test names |
ai-test-click | {index, test} | Test row toggled (expand/collapse) |