run-tests

Run automated pytest test suites for the DicePP codebase.

34|12|Updated Aug 1, 2021
One-click install
npx skills add https://github.com/pear-studio/nonebot-dicepp --skill run-tests-pear-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-tests
Source: https://github.com/pear-studio/nonebot-dicepp/tree/main/docs/agent/skills/run-tests
Command: npx skills add https://github.com/pear-studio/nonebot-dicepp --skill run-tests-pear-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you confidently verify that the DicePP codebase still works by executing automated tests and surfacing failures and coverage gaps.

Core Features & Use Cases

  • Run full test suites to quickly confirm implementation correctness across the project.
  • Run focused module/regression tests (e.g., roll, character, core) to isolate issues efficiently during development.
  • Generate coverage and a readable test report to track testing quality and prevent untested regressions, such as when changing dice logic or character sheet rules.

Quick Start

Ask the assistant to run all DicePP tests with pytest using your dev dependencies and report which tests passed, which failed, and whether coverage looks healthy.

Frequently Asked Questions about run-tests

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

FAQPage Schema
How do I run pytest suites to detect regressions in my Python codebase?

To detect regressions, run automated pytest suites targeting your full codebase or specific modules. This validates implementation correctness by executing tests and surfacing any failures, ensuring new changes do not break existing functionality.

How do I run focused module tests to isolate issues during development?

You can run focused module tests by configuring pytest selection to target specific modules like roll, character, or core. This isolates issues efficiently during development by executing only the relevant tests for the area you are changing.

Can I generate coverage reports with pytest to track testing quality?

Yes, you can generate coverage reports by executing pytest with optional coverage flags. This tracks testing quality and produces a readable test report, helping prevent untested regressions in critical logic like dice rules or character sheets.

Do I need uv to run automated test suites for CI validation?

Yes, you need uv to sync dev dependencies before running automated test suites. This ensures your environment has all required packages installed, allowing pytest to execute properly for CI validation and regression detection.

What Python version is required to execute pytest test suites for module regression?

Python 3.10 or higher is required to execute pytest test suites for module regression. This version prerequisite ensures compatibility with the test automation framework and the codebase dependencies needed for full validation.

Why does pytest test automation fail when running full validation suites?

Pytest test automation may fail during full validation if dev dependencies are not installed via uv sync, or if the environment lacks Python 3.10+. Surfaces failures and coverage gaps indicate implementation regressions that need fixing.