testing

Featured

Testing workflow and quality standards for writing and running tests. Use when: (1) Writing new tests, (2) Adding a new feature that needs tests, (3) Modifying logic that has existing tests, (4) Before claiming a task is complete.

AI & Automation 30,980 stars 3109 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Testing Skill Standards and workflow for writing and running tests. Every feature must be tested. **Announce at start:** "I'm using testing skill to ensure proper test coverage." ## Trigger Conditions - Writing new tests for a feature or bug fix - Adding a new feature (must include tests) - Modifying logic that has existing tests (must update them) - Before claiming work is complete - Before committing code ## Framework **Vitest 4** — configured in `vitest.config.ts`. ## Test Structure ``` tests/ ├── unit/ # Individual functions, utilities, components ├── integration/ # IPC, database, service interactions ├── regression/ # Regression test cases └── e2e/ # End-to-end tests (Playwright, playwright.config.ts) ``` ## Two Test Environments | Environment | When | File naming | | ---------------- | --------------------------------- | --------------- | | `node` (default) | Main process, utilities, services | `*.test.ts` | | `jsdom` | DOM/browser-dependent code | `*.dom.test.ts` | ## Workflow ### Step 1: Identify What to Test Before writing tests, list the **riskiest scenarios** first: - What happens when the dependency returns `undefined` / throws? - What happens at boundaries (empty list, max retries, past timestamp)? - What is most likely to break in production? ### Step 2: Write Tests Follow these quality rules: **1. Describe behavior, not code structure** ```typescript // Wrong —...

Details

Author
iOfficeAI
Repository
iOfficeAI/AionUi
Created
11 months ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Testing & QA Solid

testing-strategy

Testing strategy, patterns, and quality assurance for the project. Covers vitest patterns, external integration test design (mocking transport, simulating reconnect, checksum validation for streaming sources), domain math test design (boundary values, precision edge cases), E2E multi-process testing (IPC, worker lifecycle), route testing (auth verification, input validation), database test patterns (mocking data layer), chaos test framework design, test quality metrics (mutation testing, branch coverage), React component/hook testing (RTL query priority, MSW network mocking, axe a11y), test-first TDD (RED/GREEN/REFACTOR discipline), and CI integration. Use when writing tests, reviewing test quality, designing test strategies, setting up CI pipelines, or evaluating test coverage gaps.

3 Updated today
Canhada-Labs
AI & Automation Solid

test-writing

Write comprehensive tests for code including unit tests, integration tests, and end-to-end tests. Use this to ensure code quality, catch bugs, and validate functionality.

35 Updated 1 weeks ago
KarmaloopAI
Testing & QA Solid

testing

This skill should be used when the user asks to "write tests", "fix failing tests", "improve test coverage", "add integration tests", "debug a flaky test", or reviews test quality. Provides behavior-focused testing patterns, coverage analysis, and detection of brittle test anti-patterns like implementation coupling and non-deterministic assertions.

17 Updated 2 days ago
dean0x