test-isolation-validation

Detect new test failures and state contamination in pytest suites.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/Sanchez-78/crypto-trading-bot --skill test-isolation-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-isolation-validation
Source: https://github.com/Sanchez-78/crypto-trading-bot/tree/main/.claude/skills/test-isolation-validation
Command: npx skills add https://github.com/Sanchez-78/crypto-trading-bot --skill test-isolation-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of undetected test regressions and hidden state leaks between tests that produce flaky, unreliable test suites and allow bugs to slip into production.

Core Features & Use Cases

  • Regression Testing: Runs full test suites on both the main branch and feature branches to identify new test failures introduced by code changes.
  • Isolation Validation: Executes tests in random order multiple times to detect state contamination between tests that causes inconsistent, flaky results.
  • Use Case: For example, before merging a new user authentication feature, use this Skill to verify no existing login or permission tests break, and no test state leaks between session management and token validation tests.

Quick Start

Use the test-isolation-validation skill to run a full regression and isolation check on your current feature branch's test suite before merging to main.

Frequently Asked Questions about test-isolation-validation

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

FAQPage Schema
How do I detect test state leaks causing flaky pytest results?

To detect test state leaks causing flaky pytest results, run your test suite in random order multiple times. This isolation validation exposes hidden state contamination between tests that produces inconsistent, unreliable outcomes.

What is the best way to check for new test failures before merging a feature branch?

The best way to check for new test failures before merging is regression testing. Run your full pytest suite on both the main branch and the feature branch to identify new failures introduced by code changes.

Can I use pytest random-order execution for continuous integration pass/fail gating?

Yes, you can use pytest random-order execution for continuous integration pass/fail gating. It validates test isolation and ensures your CI pipeline blocks merges when inconsistent test failures or state leaks are detected.

Why does my test suite pass locally but fail in CI with inconsistent results?

Your test suite passes locally but fails in CI due to hidden state contamination between tests. Running tests in random order detects these state leaks that cause inconsistent, flaky results across different execution environments.

Does test isolation validation work with Python projects that have hidden test dependencies?

Test isolation validation works with Python projects to uncover hidden test dependencies. By executing pytest multiple times in randomized sequences, it detects state contamination between tests that causes inconsistent failures.

When do I need regression checking and test reliability auditing for my Python project?

You need regression checking and test reliability auditing for your Python project before merging code changes. It prevents flaky tests and missed regressions from slipping into production by comparing baseline test results.