Skip to content

Commit 56b2ea5

Browse files
committed
Enhancement (agents-development-workflow): Reinforce message for starting by writing test for primary use cases.
Signed-off-by: Exadra37 <exadra37@gmail.com>
1 parent 4948fec commit 56b2ea5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DEVELOPMENT_WORKFLOW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You **MUST** follow the INTENT_SPECIFICATION document for the protocol to implem
1717

1818
### 2.1 TDD First - Rules
1919

20-
1. You **MUST** write comprehensive tests to cover all code paths, starting by the primary use cases, followed by covering all the remaining use cases, and then by edge cases. All written tests **MUST** follow a red-green-refactor cycle, without any exceptions:
20+
1. You **MUST** write comprehensive tests to cover all code paths, starting **ALWAYS** by the primary use cases, followed by covering all the remaining use cases, and then by edge cases. You **MUST NEVER** start by writing tests for dummy or sanity check tests cases. All written tests **MUST** follow a red-green-refactor cycle, without any exceptions:
2121
1. **RED** - The test **MUST** fail without compiler warnings or errors, but you **MUST NOT** implement the full working code under test to solve the warning or the error, otherwise you get a GREEN test without a having first a correct RED failing test. You **MUST** implement only the minimal required code to satisfy the warning or error for the code under test, like creating the Module/Class/File with an **empty** function by preference, or in alternative one function that returns `TODO`.
2222
2. **GREEN** - Implement the minimal code required to make the test pass. This code needs to be well crafted, secure, easy to read, reason about, and to modify later.
2323
3. **REFACTOR** - After the test is GREEN inspect the code for opportunities of improvement to follow best practices, avoid common pitfalls, performance issues, security issues (OWASP TOP TEN and more), and to ensure it follows this project guidelines.

0 commit comments

Comments
 (0)