create-dashboard-tests

create-dashboard-tests is a command for Cursor from codeready-toolchain/tarsy. It costs 0 tokens per session (1,032 once invoked), scanned A, original, Apache-2.0.

A command for creating tests for complex logic added to a dashboard. Tests are checks that automatically verify software still behaves correctly.

In plain words
What is it for?
Writing focused tests after adding dashboard functionality, especially for parsing, transformations, filters, state flows, retries, and error handling.
Why use it?
It helps catch bugs in new business logic, asynchronous state changes, API error handling, and complex conditional behavior before later changes break them.

Command for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/codeready-toolchain/tarsy/create-dashboard-tests
Clone the repo
git clone --depth 1 https://github.com/codeready-toolchain/tarsy

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-dashboard-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/codeready-toolchain/tarsy/create-dashboard-tests.svg)](https://agentmods.dev/commands/codeready-toolchain/tarsy/create-dashboard-tests)
Your own site
<a href="https://agentmods.dev/commands/codeready-toolchain/tarsy/create-dashboard-tests"><img src="https://agentmods.dev/badge/commands/codeready-toolchain/tarsy/create-dashboard-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01032
Opus 5 $0.00000 $0.00516
Sonnet 5 $0.00000 $0.00206
Haiku 4.5 $0.00000 $0.00103

Measured 4d ago against content hash 2e516179f1b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-dashboard-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/commands/create-dashboard-tests.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing Tests for Dashboard Functionality

When to Use This Command

You'll typically use this after implementing new dashboard functionality. Create tests for the complex logic you just added.

CRITICAL: Tests for new functionality often reveal real bugs in the implementation. If a test fails:

  1. FIRST, analyze if it's a bug in the production code
  2. FIX THE BUG in the implementation - do NOT write tests that codify incorrect behavior
  3. Only adjust tests if the implementation is correct and test expectations were wrong

NEVER write tests that document/accept buggy behavior. Tests must verify correct functionality, not enshrine bugs.

If unsure - ASK!

Philosophy: Test What Matters

Write tests that prevent real bugs and give confidence during refactoring. Focus on complex logic prone to breaking.

Test:

  • ✅ Complex business logic (parsing, transformations, filters)
  • ✅ State management with intricate async flows
  • ✅ API services with retry/error handling logic
  • ✅ Components with complex conditional logic

Skip:

  • ❌ Simple rendering/styling
  • ❌ Trivial utilities
  • ❌ Framework behavior
  • ❌ Tests harder to maintain than the code itself

Coverage is NOT a goal. A few high-quality tests for critical logic beat dozens of brittle ones.

Running Tests

Always use make commands - consistent for humans and CI:

make test-dashboard         # Full check: tests + TypeScript (CI)
make dashboard-test         # Vitest only (run once)
make dashboard-test-watch   # Development (auto-rerun)
make dashboard-test-build   # TypeScript check only
make dashboard-lint         # Lint dashboard code
make test                   # All project tests (Go + dashboard)

Test Organization

Place tests in web/dashboard/src/test/:

  • utils/ - Utility function tests (parsers, formatters, persistence)
  • services/ - API and auth service tests
  • hooks/ - Custom hook tests
  • components/ - Component tests (sparingly!)

Priority Guide

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 117 lines · 0 tokens per session scan A 2e516179f1b3

Subscribe to this mod's changes

create-dashboard-tests is a command published in the GitHub repository codeready-toolchain/tarsy (10 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,032 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.