Skip to content
Back

Test ticksPro

A test run as one small tick per test, a row per file: ticks fill as results arrive, the timer, pass and fail counters and the rate roll with the run, and a failing run dims the passes and opens a fix card with a diff that re-runs only what failed.

oxyn add test-ticks

Running tests

Checkout agent · PR #214 · pnpm test

0.0selapsed0passed0failed0.0tests/s0/48done
cart.test.ts
pricing.test.ts
checkout.test.ts
tax.test.ts
Running 0 of 48
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Show a test run as it happens, one tick per test, so failures are found at a glance and fixed without leaving the view.

When not to use

  • An agent asks before it acts: use Approval Card instead.
  • Several open requests in one card: use Approval pager instead.
  • An agent's question in its own card above the composer: use Decision Card instead.

Installation

Test ticks is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add test-ticks

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Failing

Two failures, then the fix card over the failing file.

Running tests

Checkout agent · PR #214 · pnpm test

0.0selapsed0passed0failed0.0tests/s0/48done
cart.test.ts
pricing.test.ts
checkout.test.ts
tax.test.ts
Running 0 of 48
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

All pass

A clean run that ends green.

Running tests

Checkout agent · PR #214 · pnpm test

0.0selapsed0passed0failed0.0tests/s0/48done
cart.test.ts
pricing.test.ts
checkout.test.ts
tax.test.ts
Running 0 of 48
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Compact

Grid only, no file names, fast (Oxyn extra).

Running tests

Checkout agent · PR #214 · pnpm test

0.0selapsed0passed0failed0.0tests/s0/48done
Running 0 of 48
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

TestTicks

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
failboolDefault::default()Two tests fail (error scenario with the fix card).
speedf641.0Speed factor (1 = sample timing).
show_ratebooltrueShow the tests-per-second rate.
compactboolDefault::default()One dense grid without file rows.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
← → ↑ ↓ · HomeorEndMove between tests in the grid
EnterApply the fix while the fix card is open
EscapeClose the fix card, then clear the selection

Accessibility

  • The grid is focusable and announces each test as you move: name, result and time.
  • Results never rely on colour alone: counters and the status line carry the numbers, failures are slightly taller.
  • The grid is marked busy while the run is going; the fix card is a labelled dialog.
From the spec

The grid is one tab stop with role grid; arrows move the selection and each tick speaks its test, result and time; results always appear as numbers and text, not colour alone; the fix card is a labelled dialog. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

Queued ticks are grey, the running tick is outlined and pulses, passes fill green, failures fill red and grow slightly taller. The fix card pops over the grid with a two-line diff; applying it flips only the failed ticks back to running and then to green.

Timing

Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Test90–240 ms each at 1× (dur)stepped
Tick fill180 msease
Fix card220 ms popovershoot
Re-run450 ms per failed test—

Reduced motion: CSS motion is cut to a frame; decorative bands and rings are hidden or still; state and text changes stay.

Responsive behaviour

  • Under 520 px the file name sits above its ticks and ticks wrap.
  • The fix card narrows to the grid width.
Edge cases (spec)

Under 520 px the file name sits above its ticks; ticks wrap; the fix card narrows to the grid. Counters keep tabular digits. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the official coloured brand marks.

Notes for AI

  • Import TestTicks from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: XPostView in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI