testing

Enforce deterministic, hermetic Python test suites with gate-tiering policies.

3|Updated May 12, 2026
One-click install
npx skills add https://github.com/gao-hongnan/omniagents --skill testing-gao-hongnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/gao-hongnan/omniagents/tree/main/plugins/python/skills/testing
Command: npx skills add https://github.com/gao-hongnan/omniagents --skill testing-gao-hongnan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the common failure modes in Python test suites, such as flaky tests, non-deterministic behavior, and poor test architecture, ensuring that a red test result always indicates a genuine defect.

Core Features & Use Cases

  • Gate Tiering: Implements a strict three-tier gate system (G1: blocking, G2: integration, G3: canary) to manage test budgets and determinism.
  • Hermeticity Enforcement: Provides rigorous rules for controlling time, randomness, and network access to ensure tests are isolated and reproducible.
  • Advanced Testing Patterns: Offers guidance on property-based testing, fixture factories, and contract testing to improve suite reliability and maintainability.

Quick Start

Use the testing skill to audit the current test suite architecture and apply the recommended G1 gate non-negotiables to the project.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I eliminate flaky tests in my Python test suite?

To eliminate flaky tests, enforce deterministic execution and hermetic isolation by rigorously controlling time, randomness, and network access. This ensures a red test result always indicates a genuine defect rather than environmental interference.

What is gate tiering in Python testing workflows?

Gate tiering in Python testing is a strict three-tier system managing test budgets: G1 for blocking unit tests, G2 for integration, and G3 for canary tests. This architecture ensures deterministic execution across professional development environments.

How do I enforce hermetic test isolation for pytest?

Enforce hermetic test isolation for pytest by applying rigorous rules that control time, randomness, and network access. This guarantees tests are isolated and reproducible, satisfying zero-flake policies across all test tiers.

Can I use property-based testing within a strict CI gate system?

Yes, you can use property-based testing within a strict CI gate system by applying advanced testing patterns like fixture factories and contract testing. This improves suite reliability and maintainability while satisfying strict type-checking and linting requirements.

How do I audit an existing Python test suite architecture?

Audit an existing Python test suite architecture by evaluating it against G1 gate non-negotiables. Apply recommended strict type-checking, linting, and zero-flake policies to standardize unit, integration, and property-based testing workflows.