Skip to content

Add --backend=dev support to roc test#9173

Draft
lukewilliamboswell wants to merge 1 commit intomainfrom
test-dev-backend
Draft

Add --backend=dev support to roc test#9173
lukewilliamboswell wants to merge 1 commit intomainfrom
test-dev-backend

Conversation

@lukewilliamboswell
Copy link
Copy Markdown
Collaborator

@lukewilliamboswell lukewilliamboswell commented Feb 10, 2026

Summary

  • Add --backend=<interpreter|dev> flag to roc test, allowing users to choose the dev backend (native code generation) for test evaluation
  • When using --backend=dev, unsupported expressions are reported as COMPILER_ERROR (yellow) rather than failing, giving clear visibility into what the dev backend can't handle yet
  • Default behavior (--backend=interpreter) is unchanged

This is useful when the interpreter has bugs (e.g. TypeMismatch errors) that the dev backend doesn't have, letting tests pass that otherwise couldn't.

🤖 Generated with Claude Code

Allow users to choose the dev backend (native code generation) for test
evaluation via `roc test --backend=dev`, as an alternative to the default
interpreter. This is useful when the interpreter has bugs (e.g.
TypeMismatch errors) that the dev backend doesn't have.

The dev path uses DevEvaluator to generate and execute native code for
each expect expression. Unsupported expressions are reported as
COMPILER_ERROR (yellow) to clearly indicate when the compiler can't
handle an expression yet. Crashes are reported as failures. Test
reporting now supports a three-state result (passed/failed/compiler_error).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Thank you for your contribution! Sometimes PRs end up staying open for a long time without activity, which can make the list of open PRs get long and time-consuming to review. To keep things manageable for reviewers, this bot automatically closes PRs that haven’t had activity in 60 days. This PR hasn’t had activity in 30 days, so it will be automatically closed if there is no more activity in the next 30 days. Keep in mind that PRs marked Closed are not deleted, so no matter what, the PR will still be right here in the repo. You can always access it and reopen it anytime you like!

@lukewilliamboswell
Copy link
Copy Markdown
Collaborator Author

needs rebasing, but keep open until roc test supports the dev backends

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