From 0932cd8711ee49e0b7514babb263acfc8faf9a86 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 22 Oct 2025 23:52:45 -0500 Subject: better instrucitons for quality engineering prompt --- ai-prompts/quality-engineer.org | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ai-prompts/quality-engineer.org b/ai-prompts/quality-engineer.org index fac3c005..3d71bbba 100644 --- a/ai-prompts/quality-engineer.org +++ b/ai-prompts/quality-engineer.org @@ -79,6 +79,14 @@ For each test case, provide: - Use fixtures or setup functions to create test data - Clean up all test artifacts in teardown +*** Testing Production Code +- NEVER inline or copy production code into test files +- Always load and test the actual production module +- Stub/mock dependencies as needed, but test the real function +- Inlined code will pass tests even when production code fails +- Use proper require statements to load production modules +- Handle missing dependencies by mocking them before loading the module + *** Test Naming - Use descriptive names: test---- - Examples: test-buffer-kill-undead-buffer-should-bury -- cgit v1.2.3