Skip to content

test: unify parsing assertions#117

Open
mkaput wants to merge 5 commits intoelixir-tools:mainfrom
mkaput:pr/parse-assertions-unify
Open

test: unify parsing assertions#117
mkaput wants to merge 5 commits intoelixir-tools:mainfrom
mkaput:pr/parse-assertions-unify

Conversation

@mkaput
Copy link
Contributor

@mkaput mkaput commented Feb 19, 2026

I have noticed a proliferation of various ways how to assert Spitfire conformance with Elixir parser. This PR introduces uniform assertion macros library, so we:

  1. have a single place to modify,
  2. have a single format of assertion messages,
  3. and significantly reduce LOC in test files.

Please review commit-by-commit.

@mkaput mkaput force-pushed the pr/parse-assertions-unify branch 2 times, most recently from 33cf582 to a7d61db Compare February 19, 2026 13:22
@mhanberg mhanberg changed the title refactor(test): unify parsing assertions test: unify parsing assertions Feb 19, 2026
mkaput added 4 commits March 5, 2026 10:25
I have noticed a proliferation of various ways how to assert Spitfire conformance with Elixir parser. This commit introduces uniform assertion macros library, so we:
1. have a single place to modify,
2. have a single format of assertion messages,
3. and significantly reduce LOC in test files.
@mkaput mkaput force-pushed the pr/parse-assertions-unify branch from a7d61db to 622e514 Compare March 5, 2026 09:27
Replace remaining manual parse-vs-quoted assertions in regression cases
with assert_conforms/1, and convert the fn-delimiter error regression
checks to assert_errors/1.

This keeps spitfire_test aligned with the shared Spitfire.Assertions
helpers and reduces duplicated assertion boilerplate.

Manual testing:
- mix format
- mix test (property-test failures in Spitfire.CharPropertyTest are known)
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.

1 participant