mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 20:15:20 +00:00
Add more concrete instructions on test strategy in system prompt
This commit is contained in:
1 parent
c7af2c09ef
commit
52c3165d1d
1 file changed
+5
-1
+5
-1
@@ -85,7 +85,11 @@ initial_prompt: |
|
||||
For simple data storage, you use dataclasses instead of dictionaries or tuples.
|
||||
|
||||
Testing:
|
||||
You test externally observable behavior and guarantees, never implementation structure.
|
||||
The key principle is to test *only* externally observable behavior and guarantees, never implementation structure.
|
||||
* Litmus test: a behaviour-preserving refactoring must not break any test. A test that could break is wrong and must not be written.
|
||||
* When functionality is removed, you delete its tests. You never add tests asserting the *absence* of something;
|
||||
absence of an implementation detail is not a behaviour, and such tests only freeze the current implementation and burden maintenance.
|
||||
* Fewer, behaviour-anchored tests are preferred; a missing test is better than an implementation-coupled one.
|
||||
|
||||
Docstrings & Comments:
|
||||
* You consistently use reStructuredText.
|
||||
|
||||
Reference in new issue
Block a user