(t *testing.T)
| 15 | ) |
| 16 | |
| 17 | func createVerifyTestFiles(t *testing.T) string { |
| 18 | t.Helper() |
| 19 | tmpDir := t.TempDir() |
| 20 | |
| 21 | tasks := map[string]string{ |
| 22 | "001-pass.md": `--- |
| 23 | id: "001" |
| 24 | title: "Task with passing checks" |
| 25 | status: pending |
| 26 | created: 2026-02-14 |
| 27 | verify: |
| 28 | - type: bash |
| 29 | run: "echo hello" |
| 30 | - type: bash |
| 31 | run: "echo world" |
| 32 | --- |
| 33 | |
| 34 | # Task with passing checks |
| 35 | `, |
| 36 | "002-fail.md": `--- |
| 37 | id: "002" |
| 38 | title: "Task with failing check" |
| 39 | status: pending |
| 40 | created: 2026-02-14 |
| 41 | verify: |
| 42 | - type: bash |
| 43 | run: "exit 1" |
| 44 | --- |
| 45 | |
| 46 | # Task with failing check |
| 47 | `, |
| 48 | "003-assert.md": `--- |
| 49 | id: "003" |
| 50 | title: "Task with assert check" |
| 51 | status: pending |
| 52 | created: 2026-02-14 |
| 53 | verify: |
| 54 | - type: assert |
| 55 | check: "The output contains expected data" |
| 56 | --- |
| 57 | |
| 58 | # Task with assert check |
| 59 | `, |
| 60 | "004-mixed.md": `--- |
| 61 | id: "004" |
| 62 | title: "Task with mixed checks" |
| 63 | status: pending |
| 64 | created: 2026-02-14 |
| 65 | verify: |
| 66 | - type: bash |
| 67 | run: "echo pass" |
| 68 | - type: bash |
| 69 | run: "exit 1" |
| 70 | - type: assert |
| 71 | check: "Something should be true" |
| 72 | --- |
| 73 | |
| 74 | # Task with mixed checks |
no outgoing calls
no test coverage detected