Skip to content

test: add 45 missing resolver spec test cases#335

Merged
nicklasl merged 1 commit intomainfrom
nicklasl/add-missing-spec-tests
Mar 13, 2026
Merged

test: add 45 missing resolver spec test cases#335
nicklasl merged 1 commit intomainfrom
nicklasl/add-missing-spec-tests

Conversation

@nicklasl
Copy link
Member

Summary

  • Syncs resolver spec test files (state.json + tests.json) from epx-flags-resolver to close the conformance gap
  • Adds 45 new test cases, 11 new segments, 13 new flags

New test coverage

  • is-null / is-not-null attribute matching (5 tests)
  • NOT(anyRule) and NOT(allRule) expressions (10 tests)
  • all/any rule edge cases: empty, null, missing field, heterogeneous, nested list (8 tests)
  • Context value as list for eq/set/range rules (3 tests)
  • Custom targeting key selector (3 tests)
  • Semver and timestamp range targeting (5 tests)
  • Full vs partial rollout with invalid key types (2 tests)
  • Same-segment-twice, fallthrough single rule (2 tests)
  • Nested materialized segment criterion (3 tests)
  • Combined attribute + materialized segment criteria (4 tests)

Test plan

  • make test — all 45 new tests pass
  • 3 pre-existing spec test failures remain (unrelated: circular_segment_dependency, empty_range_rule, mat_matched_no_variant_for_rule)

🤖 Generated with Claude Code

Add 45 new test cases and supporting state (13 flags, 11 segments,
11 bitsets). Remove 2 duplicate tests (variant_match,
full_rollout_no_targeting_key). Add rust overrides for 10
behavioral divergences.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nicklasl nicklasl force-pushed the nicklasl/add-missing-spec-tests branch from 8a16b23 to 0d379b7 Compare March 13, 2026 12:34
@nicklasl nicklasl changed the title feat: add 45 missing resolver spec test cases test: add 45 missing resolver spec test cases Mar 13, 2026
@nicklasl nicklasl marked this pull request as ready for review March 13, 2026 13:07
@nicklasl nicklasl merged commit c2f49d9 into main Mar 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants