Skip to content

Commit 4948fec

Browse files
committed
Enhancement (agents-development-workflow): Make more explicit that tests need to cover first the primary use cases, followed by secondary and edged cases.
Signed-off-by: Exadra37 <exadra37@gmail.com>
1 parent 2582fc4 commit 4948fec

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, and they **MUST** follow a red-green-refactor cycle, without any exceptions:
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:
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)