Unit And Integration Tests.instructions
---
description: "Unit and integration testing best practices with pytest"
applyTo: "**/*test*.py"
---
# Unit and Integration Tests Instructions
## Overview
This instruction file defines testing standards using pytest for Python projects.
## Test Organizationwhen to use it
Community prompt sourced from the open-source GitHub repo duthaho/copilot-instructions (MIT). A "Unit And Integration Tests.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
duthaho/copilot-instructions · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions