From b79afe1d2f524386ed66686e81001546c51d630b Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 28 Dec 2025 23:27:30 -0800 Subject: [PATCH] doc: cover documentScenarios for tests Signed-off-by: Robin H. Johnson --- agents.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agents.md b/agents.md index 54cd94bc..dd9534a7 100644 --- a/agents.md +++ b/agents.md @@ -83,6 +83,7 @@ Create a test file `pkg/yqlib/_test.go` using the `formatScenario` patte - `scenarioType` can be `"decode"` (test decoding to YAML) or `"roundtrip"` (encode/decode preservation) - Create a helper function `testScenario()` that switches on `scenarioType` - Create main test function `TestFormatScenarios()` that iterates over scenarios +- The main test function should use `documentScenarios` to ensure testcase documentation is generated. Test coverage must include: - Basic data types (scalars, arrays, objects/maps) @@ -338,6 +339,7 @@ Create `pkg/yqlib/operator__test.go` using the `expressionScenario` patter - Include `subdescription` for longer test names - Set `expectedError` if testing error cases - Create main test function that iterates over scenarios +- The main test function should use `documentScenarios` to ensure testcase documentation is generated. Test coverage must include: - Basic data types and nested structures