Skip to content

Comments

Remove test.expect_* calls and expected files#980

Merged
bitwalker merged 3 commits intonextfrom
i973-remove-expect-tests
Feb 23, 2026
Merged

Remove test.expect_* calls and expected files#980
bitwalker merged 3 commits intonextfrom
i973-remove-expect-tests

Conversation

@greenhat
Copy link
Contributor

@greenhat greenhat commented Feb 23, 2026

Ref #973

This PR removes calls to test.expect_* in the integration files and the corresponding expected files.

I recommend reviewing this PR on a per-commit basis.

Why

We planned to stop abusing the expect tests and use the proper --emit infra to get the introspection into the pipeline in #816.

How I'm doing introspection now

I set export MIDENC_EMIT=ir=ir_dump before running the tests and I have <leader>m in my neovim config to fuzzy search the emitted files to open the one I'm interested in in the editor.

Renamed `test.compiled_package()` to `test.compile_package()` to
highlight that it runs Wasm->MASM compilation. Before that, the
`test.expect_masm` calls compiled Wasm->MASM and cache a package and
`test.compiled_package` returned the cached package.
@greenhat greenhat requested review from bitwalker and mooori February 23, 2026 11:53
Copy link
Collaborator

@bitwalker bitwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It'll be nice to avoid all the churn in PRs for sure

@bitwalker bitwalker merged commit c28ad5d into next Feb 23, 2026
15 checks passed
@bitwalker bitwalker deleted the i973-remove-expect-tests branch February 23, 2026 13:39
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