Skip to content

Commit cb8ab73

Browse files
authored
fix(workflow): add bug marker to pyproject and clarify bug handling in AGENTS.md (#73)
1 parent d8d6492 commit cb8ab73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

AGENTS.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ Commit: `feat(criteria): write acceptance criteria for <name>`
106106
### Bug Handling
107107

108108
When a defect is reported:
109-
1. **PO** adds `@bug @id:<hex>` Example to the relevant `Rule:` in the `.feature` file
110-
2. **SE** implements the specific test in `tests/features/<feature-name>/`
111-
3. **SE** also writes a `@given` Hypothesis property test in `tests/unit/` for the whole class of inputs
112-
4. Both tests are required. SE follows the normal TDD loop (Step 3).
109+
1. **PO** adds a `@bug @id:<hex>` Example to the relevant `Rule:` in the `.feature` file and moves (or keeps) the feature in `backlog/` for normal scheduling.
110+
2. **SE** handles the bug when the feature is selected for development (standard Step 2–3 flow): implements the specific `@bug`-tagged test in `tests/features/<feature-name>/` and also writes a `@given` Hypothesis property test in `tests/unit/` covering the whole class of inputs.
111+
3. Both tests are required. SE follows the normal TDD loop (Step 3).
113112

114113
## Filesystem Structure
115114

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ minversion = "6.0"
8181
markers = [
8282
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
8383
"deprecated: marks tests for deprecated AC; automatically skipped (deselect with '-m \"not deprecated\"')",
84+
"bug: marks tests that reproduce a reported defect (deselect with '-m \"not bug\"')",
8485
]
8586
addopts = """
8687
--maxfail=10 \

0 commit comments

Comments
 (0)