testing

Automate pytest, API, database, and Cypress tests with coverage tracking.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/rayvoidx/creator-onboarding-agent --skill testing-rayvoidx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/rayvoidx/creator-onboarding-agent/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/rayvoidx/creator-onboarding-agent --skill testing-rayvoidx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation and management of tests to catch regressions early and speed up development.

Core Features & Use Cases

  • Unit tests: Pytest-based unit tests with mocks and fixtures.
  • Integration tests: End-to-end tests across APIs and data stores.
  • E2E tests: Cypress-based end-to-end user flow validation.
  • Coverage management: Track coverage goals and generate reports.

Quick Start

Run pytest tests/ to execute unit tests and generate a coverage report.

Frequently Asked Questions about testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up unit testing with pytest to catch bugs early?

Unit testing with pytest automates checks on individual code components using fixtures and mocks to isolate behavior. Write test functions in a tests/ directory, run pytest tests/ to execute them, and generate a coverage report to track how much code is validated. This catches regressions before they reach production.

Can I use pytest fixtures and mocks to test async code?

Yes, pytest supports async testing with AsyncMock and patch decorators for mocking dependencies. Fixtures manage setup and teardown for test isolation. This pattern lets you test asynchronous functions reliably without external service calls or database access.

What's the best way to achieve high test coverage across a repository?

Combine unit tests for individual functions, integration tests across APIs and databases, and E2E tests with Cypress for user workflows. Track coverage metrics toward a 95% target and generate actionable reports showing gaps. This multi-layer approach catches issues at each tier of your application.

How do I write integration tests that validate APIs and databases together?

Integration tests exercise multiple system components—APIs, data stores, and business logic—in concert. Use pytest with fixtures to set up test data and mock external dependencies. Run these tests after unit tests to verify components interact correctly before E2E validation.

Can I automate end-to-end user flow testing across my application?

Yes, Cypress-based E2E tests validate complete user workflows through your application UI and backend. These tests run after unit and integration tests to confirm the full stack works as users expect. Coverage reports show which critical paths are validated.

Do I need separate test files for mocks and fixtures, or can I organize them differently?

Pytest conventions allow fixtures and mocks to live in conftest.py for reuse across test modules, or inline within test files for isolated scenarios. Follow your project structure conventions to keep test organization consistent and maintenance straightforward.