Test Results

A test run by the agent. The summary line counts what passed and failed; open it to see each suite, its tests, and the error for each failure.

Usage

Test Results

Run the checkout tests.
charges the saved card
Expected 2 charge attempts, received 1
  at Object.<anonymous> (src/payment.test.ts:58:22)

One test failed. The payment client does not retry a declined card, so the second charge attempt never happens.

import { NgTemplateOutlet } from '@angular/common';import {  Component,  DestroyRef,  ViewEncapsulation,  inject,  signal,} from '@angular/core';import {  ScBubble,

A Trace with a collapsible line for the run and for each suite; a failed test opens on its error, in a Code Block.

Anatomy

import {  ScTrace, ScTraceLine, ScTraceIcon, ScTraceTitle,  ScTraceCollapsible, ScTraceCollapsibleTrigger, ScTraceCollapsiblePanelContent,  ScCollapsible, ScCollapsibleTrigger, ScCollapsiblePanel,} from '@semantic-components/ui';
<div scTrace>  <div scCollapsible scTraceCollapsible>    <button scCollapsibleTrigger scTraceCollapsibleTrigger>      <span scTraceLine status="error">        <span scTraceIcon><svg siFlaskConicalIcon></svg></span>        <span scTraceTitle>Ran 2 tests, 1 failed</span>      </span>    </button>    <div scCollapsiblePanel>      <div scTraceCollapsiblePanelContent>        <div scTrace>          <span scTraceLine>… creates a user</span>          <div scCollapsible scTraceCollapsible>… updates a user profile …</div>        </div>      </div>    </div>  </div></div>

Examples

Tests grouped by file: each suite a collapsible line with its tests, the suites with a failure open.

Suites

creates a user
Expected status 200, received 500
  at Object.<anonymous> (src/user-api.test.ts:45:12)
Skipped deletes a user
connects to the database
Exceeded timeout of 5000 ms for a test.
  at Object.<anonymous> (src/db.test.ts:22:3)
import { NgTemplateOutlet } from '@angular/common';import { Component, ViewEncapsulation } from '@angular/core';import {  ScCollapsible,  ScCollapsiblePanel,  ScCollapsibleTrigger,  ScTrace,  ScTraceCollapsible,  ScTraceCollapsiblePanelContent,  ScTraceCollapsibleTrigger,

RTL

ينشئ مستخدمًايحدّث ملف المستخدم
import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation } from '@angular/core';import {  ScCollapsible,  ScCollapsiblePanel,  ScCollapsibleTrigger,  ScTrace,  ScTraceCollapsible,  ScTraceCollapsiblePanelContent,  ScTraceCollapsibleTrigger,

API reference

See the Trace and the Code Block.