Tags
A tag in implementation code implements a requirement; a tag in a test file verifies it, optionally at a level.
export function renew() { /* ... */ } // @spec BILLING-009it("charges at current price", () => {}) // @spec BILLING-009 unitit("renews end to end", () => {}) // @spec BILLING-009 e2eTag kind
Section titled “Tag kind”Kind is path-derived, never authored:
| Location | Kind |
|---|---|
src/ or similar implementation path | implements |
test/ or similar test path | verifies |
a docs path (e.g. docs/*.md) | documents |
Verification levels
Section titled “Verification levels”On test tags, an optional level token can be appended:
unit— unit testintegration— integration teste2e— end-to-end test
Coverage
Section titled “Coverage”spec map derives the coverage matrix from tags. It is never authored, only projected (a SQL view over the index), so it cannot drift from the tests it describes.
Tag scanner notes
Section titled “Tag scanner notes”fixtures/directories are globally ignored — tags under anyfixtures/folder never index- Test files that compose tag strings at runtime should not contain literal
@spectags