File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,17 @@ A disciplined workflow is required to ensure quality and consistency.
5353``` bash
5454# Step 1: RED - Write a failing test for a new feature
5555# The test must define the expected behavior.
56- ./test.sh tests/test_new_feature.py::test_specific_behavior
56+ uv run pytest tests/test_new_feature.py::test_specific_behavior
5757# --> MUST FAIL to confirm the RED phase.
5858
5959# Step 2: GREEN - Write minimal implementation
6060# Write only enough code to make the test pass.
61- ./test.sh tests/test_new_feature.py::test_specific_behavior
61+ uv run pytest tests/test_new_feature.py::test_specific_behavior
6262# --> MUST PASS to confirm the GREEN phase.
6363
6464# Step 3: REFACTOR - Improve the code
6565# Clean up the implementation while keeping all tests green.
66- ./test.sh
66+ uv run pytest
6767# --> ALL tests must continue to pass.
6868```
6969
@@ -87,11 +87,10 @@ uv run mypy src/
8787
8888### 3. Test Execution
8989
90- ** ALWAYS use the ` ./test.sh ` script to run tests and examples.** This script correctly sets up the required environment variables.
90+ ** ALWAYS use the ` ./test.sh ` script to run examples.** This script correctly sets up the required environment variables.
9191
9292``` bash
9393# ✅ CORRECT: Use the test wrapper script
94- ./test.sh tests/test_client.py
9594./test.sh examples/01_basic_client_connection.py
9695
9796# ❌ WRONG: Do not run python directly
You can’t perform that action at this time.
0 commit comments