Skip to Content
zjkm-ui-ai-elements

Test Results

Display test suite results with pass/fail/skip status and error details.

The TestResults component displays test suite results including summary statistics, progress, individual tests, and error details.

Loading preview…

Installation

npm i zjkm-ui-ai-elements
import {  TestResultsHeader,  TestResultsDuration,  TestResultsSummary,  TestResults,  TestResultsProgress,  TestResultsContent,  TestSuite,  TestSuiteName,  TestSuiteStats,  TestSuiteContent,  TestName,  TestDuration,  TestStatus,  Test,  TestError,  TestErrorMessage,  TestErrorStack,} from "zjkm-ui-ai-elements/test-results";

First time? Add the package's styles: see Setup.

Features

  • Summary statistics (passed/failed/skipped)
  • Progress bar visualization
  • Collapsible test suites
  • Individual test status and duration
  • Error messages with stack traces
  • Color-coded status indicators

Status Colors

StatusColorUse Case
passedGreenTest succeeded
failedRedTest failed
skippedYellowTest skipped
runningBlue (animated)Test in progress

Examples

Basic Usage

Loading preview…

With Test Suites

Loading preview…

With Error Details

Loading preview…

Props

<TestResults />

Prop

Type

<TestSuite />

Prop

Type

<Test />

Prop

Type

<TestResultsHeader />

Prop

Type

<TestResultsSummary />

Prop

Type

<TestResultsDuration />

Prop

Type

<TestResultsProgress />

Prop

Type

<TestResultsContent />

Prop

Type

<TestSuiteName />

Prop

Type

<TestSuiteStats />

Prop

Type

<TestSuiteContent />

Prop

Type

<TestStatus />

Prop

Type

<TestName />

Prop

Type

<TestDuration />

Prop

Type

<TestError />

Prop

Type

<TestErrorMessage />

Prop

Type

<TestErrorStack />

Prop

Type

On this page