python-quality-testing

Guides Python test strategy, pytest setup, static analysis, and Azure CI/CD quality pipelines.

1|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/TheViziusGroup/vibe-engineering-skills --skill python-quality-testing-theviziusgroup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-quality-testing
Source: https://github.com/TheViziusGroup/vibe-engineering-skills/tree/main/plugins/quality-engineering/skills/python-quality-testing
Command: npx skills add https://github.com/TheViziusGroup/vibe-engineering-skills --skill python-quality-testing-theviziusgroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Python teams struggle to choose the right test distribution, configure modern tooling like pytest, Ruff, and mypy, and build reliable quality gates in Azure DevOps pipelines. This Skill provides a complete practitioner reference covering test strategy theory through production pipeline YAML. ## Core Features & Use Cases - Test Strategy & Design: Choose between Test Pyramid, Testing Trophy, and Honeycomb models, and apply black-box techniques like equivalence partitioning, boundary value analysis, decision tables, and state transition testing. - pytest Ecosystem Mastery: Configure fixtures, parametrize, conftest hierarchies, marks, coverage thresholds, TDD workflows, BDD with pytest-bdd, and contract testing with Pact. - Advanced Quality Techniques: Implement property-based testing with Hypothesis, mutation testing with mutmut or cosmic-ray, and strict static analysis with Ruff and mypy. - Azure Cloud-Native Testing: Use Azurite, Cosmos DB emulator, and testcontainers for integration tests, plus multi-stage Azure DevOps and GitHub Actions pipeline templates. - Use Case: A team building a FastAPI microservice on Azure uses this Skill to set up pytest with testcontainers for PostgreSQL, enforce 80% branch coverage in CI, and add Pact contract tests between services. ## Quick Start Ask the AI to help you set up a pytest test suite with coverage thresholds, Ruff linting, and an Azure DevOps pipeline for your Python project.

Frequently Asked Questions about python-quality-testing

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

FAQPage Schema
How do I set up pytest with coverage thresholds in Python?

Configure pytest-cov in pyproject.toml with branch coverage enabled and fail_under set to 80. Run pytest with --cov=src --cov-report=xml --cov-fail-under=80 to enforce the threshold in CI.

What is the difference between Ruff, mypy, and Black for Python?

Ruff replaces Flake8, Black, isort, and pyupgrade with a single Rust-based linter and formatter that is 10-100x faster. mypy performs static type checking with strict mode, complementing Ruff's lint rules.

How do I test Azure Storage locally without a cloud account?

Use Azurite, the local Azure Storage emulator, either started directly or via testcontainers-python's AzuriteContainer. Connect with the standard development connection string pointing to localhost endpoints.

When should I use Hypothesis instead of regular pytest parametrize?

Use Hypothesis for pure functions, parsers, round-trip properties, and state machines where generated inputs find edge cases example-based tests miss. It automatically shrinks failures to minimal reproducing cases.

Should mutation testing run on every CI commit?

No, mutation testing with mutmut or cosmic-ray is too slow for per-commit CI. Run it as an audit before major releases or when establishing baselines, targeting 80%+ mutation score for business-critical code.

How does Pact contract testing prevent microservice breakage?

Pact records consumer expectations as contract files published to a Pact Broker, which providers verify against. The can-i-deploy command gates deployments on contract compatibility between service versions.