summaryrefslogtreecommitdiff
path: root/ai-prompts
AgeCommit message (Collapse)Author
2025-11-09doc:ai-prompts: Add guide on refactoring for testabilityCraig Jennings
Introduce new section in 'quality-engineer.org' detailing how to refactor code to enhance testability. Emphasizes recognizing deep nesting, long functions, and overmocking as refactoring signals. Provides strategies such as extracting functions and clear separation of concerns. Offers real-world examples and guidelines on effective mocking to maintain tests that are resilient to implementation changes. Enhanced content in 'coder.org' with deeper insights into handling deep nesting scenarios.
2025-10-29docs: add test future-proofing and large-scale refactoring lessonsCraig Jennings
Document key lessons from chime.el timestamp refactoring project: ## New Sections Added **Test Future-Proofing & Time-Based Testing** - Dynamic timestamp generation patterns and benefits - Never hardcode dates in tests - use relative time helpers - Mock time via function substitution (with-test-time pattern) - Code examples showing before/after patterns **Large-Scale Test Refactoring Strategy** - Strategic planning: tackle biggest challenges first - Execution approach: maintain 100% pass rate throughout - Project management: track progress visibly, celebrate milestones - Know when you're done: not all files need changes **Real-World Example** - chime.el project: 23 files, 339 tests - 16 files refactored (251 tests), 7 files skipped (88 tests) - 100% pass rate maintained across all refactoring - Result: future-proof test suite that never expires ## Key Insights - "Tackle biggest challenge first" eliminates intimidation - Work in batches but commit individually for clean history - Don't let perfectionism create unnecessary work - Strategic approach builds momentum and confidence Added "Hardcoded dates in tests" to Red Flags section. These lessons capture the methodology that successfully completed the hardest refactoring task in the project. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27docs:quality-engineer: add to integration test guidelines + examplesCraig Jennings
Added detailed guidelines and examples for writing effective integration tests in the quality-engineer documentation. This includes naming conventions, docstring requirements, file structure, and when to use integration tests. Expanded sections cover balancing test types and organizing test files for clarity and maintainability.
2025-10-27docs:quality-engineer: Revise testing guidelinesCraig Jennings
Expand file organization to include unit and integration test directions. Provide detailed naming conventions with examples. Clarify expected result naming to ensure tests are self-documenting.
2025-10-26prompt: adding learnings from quality-engineer sessionsCraig Jennings
2025-10-26qa prompt: better direction about when not to mock functionalityCraig Jennings
2025-10-22better instrucitons for quality engineering promptCraig Jennings
2025-10-22renamed emacs-dev+pm prompt, adding quality-engineer promptCraig Jennings
2025-10-19fix:emacs-ai-prompt:shortened and focused the promptCraig Jennings
2025-10-12changing repositoriesCraig Jennings