Skip to content
Back to skills

Korus Testing Coverage

ASecurity

Use when adding tests, fixing failing tests, raising coverage, changing IPC/app contracts, testing Vue components in isolation, or verifying Korus desktop behavior.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentsshellbashvuetestinggitbackend

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add nbonamy/korus --skill korus-testing-coverage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Korus Testing Coverage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Korus Testing Coverage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nbonamy-korus-testing-coverage/badge)](https://www.skillsdirectory.com/skills/nbonamy-korus-testing-coverage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: korus-testing-coverage
description: Use when adding tests, fixing failing tests, raising coverage, changing IPC/app contracts, testing Vue components in isolation, or verifying Korus desktop behavior.
---

# Korus Testing And Coverage

Use this skill when adding tests, fixing failing tests, raising coverage, or
changing contracts.

## First Read

Read `docs/testing.md` before changing tests or testable behavior.
Apply its mandatory **Test Value Gate** before adding, modifying, or retaining a
test; if the protected regression cannot be named and made red through the
owning public seam, the test does not belong.

## Principles

- Test observable behavior and app contracts, not implementation details.
- Never add fixed real-time waits to Vue tests or their browser helpers, across
  desktop, console, mobile web and website. Use observable conditions, deferred
  events, or fake-clock advances for debounce/deadline behavior. Sleeps and
  `waitForTimeout` are forbidden.
- Match test scope to risk.
- Use focused tests while iterating, then run the full relevant gate.
- For provider integration, fake the public Codex app SDK or Claude Agent SDK
  and exercise the real Korus adapter/backend. For application integration, fake
  the unified backend and exercise real app state and representative mounted UI.
  Use the fixtures and ownership rules in `docs/testing.md`.
- For provider-independent services, test their own external boundary: Electron
  shell, filesystem, git, clocks, and OS dialogs.
- Prefer realistic component interaction over mutating internals directly.
- Extend existing owner-boundary workflows first. A shared component, helper,
  reducer or adapter does not automatically need its own test suite; apply the
  Test Value Gate before adding one.
- If focused tests pass but broader verification fails, reproduce and fix the
  broader failure.

## Component Tests

- Use Vitest, Vue Test Utils, and jsdom.
- Co-locate component tests in `__tests__/` folders.
- Use the real Element Plus plugin for controls.
- Test components in isolation when the behavior belongs to that component.
- Assert visible text, aria labels, button states, emitted payloads, selected
  rows, and status changes.
- Keep snapshots rare and explicit.

## Coverage Triage

- Use coverage to find missing risk, not to pad arbitrary lines.
- Prioritize missed branches in protocol adapters, IPC, persistence, reducers,
  tool/approval rendering, diff rendering, filesystem/git behavior, Bench, and
  teams.
- Prefer tests around public behavior before adding test-only seams.
- Gate every workspace on exactly 85% statements; report lines, branches, and
  functions without blocking thresholds. Preserve the measured surface.
- Coverage complements mandatory meaningful behavioral/regression tests and
  owning-boundary verification; it cannot replace them.
- Quality CI owns coverage on every branch push. Release CI independently runs
  ordinary tests without coverage against installed SDK packages; follow
  `prepare-release` rather than duplicating its gates locally.

## Standard Gates

Prefer these commands once scripts exist:

```bash
npm test
npm run test:ai
npm run test:coverage
npm run lint
npm run build
```

Prefer `npm run test:ai` for an unfiltered agent-driven suite. It keeps Vitest
summaries and failures while suppressing passing-test noise.

If a command is not available yet, report that directly in the handoff.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.