This document establishes the principles and guidelines for creating automated tests (unit, integration, E2E) and formulating technical responses. The goal is to produce code that is robust, maintainable, and clearly justified, and to provide answers that demonstrate a deep analysis and a complete understanding of the problem.
The quality of a test is not measured by its code, but by the thought process that precedes it.
- Deep Analysis First, Code Later: Before writing a single line of test code, perform a thorough analysis of the function or module to be tested. Your response should begin with this section, describing:
- The Business Objective: What real-world problem does this function solve? What business questions should it answer? Do not simply describe what the code does; explain why it exists.