qfai 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/assets/init/.qfai/specs/README.md +3 -2
- package/dist/cli/index.cjs +784 -260
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +776 -252
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +759 -233
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.mjs +756 -232
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -221,6 +221,14 @@ QFAI uses a small, opinionated set of artifacts to reduce ambiguity and prevent
|
|
|
221
221
|
|
|
222
222
|
Traceability is validated across these artifacts, so code changes remain grounded in the specs and the tests prove compliance.
|
|
223
223
|
|
|
224
|
+
### Test strategy tags (optional)
|
|
225
|
+
|
|
226
|
+
You can annotate scenarios with lightweight test strategy metadata to keep the test pyramid/trophy healthy.
|
|
227
|
+
These tags are opt-in and only produce warnings, so you can roll them out gradually without breaking existing specs.
|
|
228
|
+
|
|
229
|
+
- Layer tags: `@layer-unit`, `@layer-component`, `@layer-integration`, `@layer-api`, `@layer-e2e`
|
|
230
|
+
- Size tags: `@size-s`, `@size-m`, `@size-l`
|
|
231
|
+
|
|
224
232
|
## Continuous integration (GitHub Actions)
|
|
225
233
|
|
|
226
234
|
(GitHub Actions)
|
|
@@ -13,6 +13,7 @@ Spec packs capture one feature slice and its acceptance scenarios.
|
|
|
13
13
|
- Keep the Business Rule list to a single BR per spec pack.
|
|
14
14
|
- Case Catalogue and traceability matrix are required for each spec pack.
|
|
15
15
|
- AC/CASE IDs are supported: `AC-0001-0001`, `CASE-0001-0001`.
|
|
16
|
+
- Optional test strategy tags (opt-in): `@layer-unit|@layer-component|@layer-integration|@layer-api|@layer-e2e` and `@size-s|@size-m|@size-l`.
|
|
16
17
|
|
|
17
18
|
## Structure
|
|
18
19
|
|
|
@@ -54,13 +55,13 @@ QFAI-CONTRACT-REF: <ID list or none>
|
|
|
54
55
|
Feature: <feature name>
|
|
55
56
|
|
|
56
57
|
# QFAI-CONTRACT-REF: <ID list or none>
|
|
57
|
-
@SC-0001-0001 @BR-0001-0001
|
|
58
|
+
@SC-0001-0001 @BR-0001-0001 @layer-unit @size-s
|
|
58
59
|
Scenario: <action slice>
|
|
59
60
|
Given <precondition>
|
|
60
61
|
When <action>
|
|
61
62
|
Then <expected outcome>
|
|
62
63
|
|
|
63
|
-
@SC-0001-0002 @BR-0001-0001
|
|
64
|
+
@SC-0001-0002 @BR-0001-0001 @layer-integration @size-m
|
|
64
65
|
Scenario: <additional slice>
|
|
65
66
|
Given <precondition>
|
|
66
67
|
When <action>
|