test

Runs pytest test suites with configurable flags and coverage reporting.

4|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/aaaa47080/stock_agent --skill test-aaaa47080
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/aaaa47080/stock_agent/tree/main/.opencode/skills/test
Command: npx skills add https://github.com/aaaa47080/stock_agent --skill test-aaaa47080

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines executing the project's test suite with consistent flags and coverage, reducing manual setup and potential errors.

Core Features & Use Cases

  • Run all project tests locally with a single command and capture detailed results.
  • Run a single test file or test function for targeted debugging.
  • Run end-to-end tests and verify coverage, with clear guidance on flags and outcomes.

Quick Start

Run the project's test suite locally or in CI with proper flags to ensure coverage and detect regressions.

Frequently Asked Questions about test

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

FAQPage Schema
How do I run pytest with coverage reporting in a CI pipeline?

You can automate running pytest with coverage in a CI pipeline by using this skill to execute the test suite with proper flags. It requires a Python environment with pytest and project test dependencies installed to capture results and verify coverage.

Can I run a single test file or function for targeted debugging?

Yes, you can run a single test file or test function for targeted debugging. The skill supports executing partial test sets locally, allowing you to isolate specific tests while maintaining consistent flag behavior and coverage settings.

What pytest flags are supported for local test execution?

Supported pytest flags for local test execution include --no-cov, -v, -q, and -x. These flags allow you to disable coverage, increase verbosity, run quietly, or stop the test suite at the first failure respectively.

Do I need any specific environment setup to automate my test suite?

Yes, you need a Python environment with pytest and the project's test dependencies installed. This setup is required before automating test execution to ensure full or partial test sets run correctly and generate accurate coverage reports.

What is the best way to ensure consistent test coverage across local and CI environments?

The best way to ensure consistent test coverage is to automate test execution with standardized flags. This skill streamlines running the project's test suite with consistent flags and coverage reporting across both local development and CI pipelines to reduce manual setup errors.

Why use an automated test runner instead of invoking pytest directly?

Using an automated test runner reduces manual setup and potential errors by streamlining test execution. It ensures consistent flags and coverage reporting are applied automatically, simplifying the process of capturing detailed end-to-end test results for full or partial test sets.