Commit b415e8f
Address @deiga test conventions feedback
Add a 'terraform-plugin-testing Conventions' section to
.github/instructions/tests.instructions.md covering:
- Prefer ConfigStateChecks over the legacy Check /
ComposeTestCheckFunc pattern.
- Use ValueComparers (compare.ValuesSame / compare.ValuesDiffer) for
cross-step value comparisons instead of custom pointer structs.
- Don't flag legacy patterns in unmodified tests; only in new or
substantially modified ones.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 96bacb6 commit b415e8f
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
30 | 52 | | |
31 | 53 | | |
32 | 54 | | |
| |||
0 commit comments