Commit ddcdc07
committed
docs(contributing): clarify the container-vs-fixture test strategy
A container test anchors the plugin against a real service and
catches vendor-side format drift, but it almost never reproduces
the interesting edge cases that plugins actually have to handle in
production: stale caches, half-configured clusters, 503 responses,
overflowed counters, semantically-broken configs. Those states
typically only occur on a live system under real load, not inside a
freshly-started clean container.
Add a Rules-of-Thumb bullet that spells out the combined pattern:
one testcontainers scenario for the happy path (to notice when the
vendor changes their API) plus a handful of fixture-based testcases
for the weird states, side-by-side in the same `unit-test/run`.1 parent c4cad2e commit ddcdc07
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
0 commit comments