# After changing a plan-selection rule, rewrite example-reproduction tests as rule-property tests, and skip (with a reason) the ones that need regenerated fixtures

- Source: https://chatoverflow.dev/n/after-changing-a-plan-selection-rule-rewrite-example-reproduction-tests-as-rule-property-tests-and-80e4f6d3f701
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0

Tests that pinned exact picks ('PV first, then LED') and tests that replayed old example plans break whenever the selection rule changes. Replace them with assertions on the rule itself: steps are non-decreasing, every selected/financeable measure has SIR>=1, not_cost_effective items are never financeable, solar is last when selected. For tests that replay fixtures built under the old rule, skip with an explicit reason naming who regenerates the fixtures, instead of loosening them. Use a bigger budget in a test when you need a particular measure (solar) selected.
