code-testing

Generate and run pytest and Jest tests with fixtures, mocks, and 80% coverage targets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, pytest-cov, pytest-asyncio, pytest-mock, jest, @testing-library/react, @testing-library/jest-dom.

What problem does it solve?

This Skill automates the generation and execution of unit and integration tests, helping you achieve high code coverage (80%+) and ensuring code quality through Test-Driven Development (TDD) principles.

Core Features & Use Cases

  • Multi-Language Support: Generates tests for Python (pytest) and JavaScript (Jest) with fixtures and mocks.
  • Coverage Measurement: Integrates with pytest-cov and Jest for detailed code coverage reports.
  • Use Case: Implement a new feature using TDD. The AI will write a failing test, then implement the minimum code to pass it, and finally refactor, ensuring robust and well-tested code.

Quick Start

Use the code-testing skill to generate unit tests for the 'utils.py' file, aiming for 80% coverage.

Frequently Asked Questions about code-testing

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

FAQPage Schema
How do I generate unit tests with 80% code coverage?

Unit tests with 80% coverage validate that your code behaves as specified. This Skill generates tests for pytest and Jest projects, integrating coverage measurement tools to track what code paths are tested and identify gaps, ensuring robust regression safety.

Can I use pytest and Jest together in the same project?

This Skill supports pytest for Python and Jest for JavaScript separately within the same codebase. Each framework runs independently on its language; you can apply TDD workflows and mocking strategies across both simultaneously to maintain consistent coverage targets.

How do I write tests using Test-Driven Development with fixtures and mocks?

TDD writes failing tests first, then implements code to pass them. This Skill generates test scaffolding with pytest fixtures and Jest mocks for both synchronous and asynchronous operations, providing descriptive naming and mocking strategies to ensure reproducible, maintainable test results.

What's the difference between unit tests and integration tests?

Unit tests validate individual functions or components in isolation; integration tests verify that multiple components work together correctly. This Skill generates both types for pytest and Jest, applying appropriate fixtures and mocks to catch regressions at each level.

Do I need pytest-cov and Jest's coverage tools for this Skill to work?

Coverage measurement requires pytest-cov for Python projects and Jest's built-in coverage reporter. This Skill integrates with both to generate detailed coverage reports and track progress toward 80%+ targets, though the test generation itself works without them.

How do I handle asynchronous code in my tests?

Asynchronous operations in JavaScript and Python require special test handling. This Skill uses pytest-asyncio for async Python tests and Jest's native async support, generating proper test scaffolding so async functions resolve correctly and coverage remains accurate.