scaffold-test-env

Generate conftest.py fixtures with isolated filesystems and mocked external services.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/djpTester44/iocane --skill scaffold-test-env
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-test-env
Source: https://github.com/djpTester44/iocane/tree/main/%7B%7Bcookiecutter.framework_folder%7D%7D/skills/scaffold-test-env
Command: npx skills add https://github.com/djpTester44/iocane --skill scaffold-test-env

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the setup of isolated testing environments for end-to-end tests, ensuring reliable and reproducible test runs by managing configuration and external service dependencies.

Core Features & Use Cases

  • Isolated Filesystem: Creates a temporary, isolated directory for each test run using tmp_path.
  • Config File Generation: Detects and generates necessary configuration files with test-specific values.
  • External Service Mocking: Identifies and mocks external service clients (e.g., googlemaps, boto3) to prevent actual external calls.
  • Use Case: When developing a new feature that interacts with external APIs and requires specific configuration files, this Skill can generate a conftest.py that sets up a clean, mocked environment for your E2E tests.

Quick Start

Run the scaffold-test-env skill to generate conftest.py fixtures for your project's end-to-end tests.

Frequently Asked Questions about scaffold-test-env

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

FAQPage Schema
How do I generate conftest.py fixtures for isolated E2E tests?

This Skill generates conftest.py fixtures for isolated E2E tests by scanning your project code for config loaders and external client instantiations, then automatically creating a test environment using tmp_path for filesystem isolation and mocked services.

Why do my end-to-end tests fail due to external service calls?

Your end-to-end tests fail because they make actual calls to external services. This Skill identifies external service clients like googlemaps or boto3 in your code and mocks them automatically in the generated conftest.py to prevent real external interactions.

What is the best way to isolate test configuration files in pytest?

The best way to isolate test configuration files in pytest is to use the tmp_path fixture. This Skill detects your config loaders and generates a conftest.py that creates a temporary, isolated directory with test-specific config files for each run.

Can I mock external clients like boto3 automatically in my test environment?

Yes, you can mock external clients like boto3 automatically. The Skill scans your project for external client instantiations and generates the necessary mocking fixtures within your conftest.py to prevent actual external calls during test execution.

How do I set up an isolated filesystem for pytest E2E test runs?

You set up an isolated filesystem for pytest E2E test runs by leveraging the tmp_path fixture. This Skill generates a conftest.py that automatically creates and manages a temporary, isolated directory structure populated with necessary test-specific configuration files.