You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPMENT_WORKFLOW.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ You **MUST** follow the INTENT_SPECIFICATION document for the protocol to implem
17
17
18
18
### 2.1 TDD First - Rules
19
19
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:
21
21
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`.
22
22
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.
23
23
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