roc dev main.roc
(same as just roc main.roc
) currently exits with code 0 if an expect failed #7767. This is easy to fix but now the program exits as soon as one expect fails, with the old behavior we ran all expects and printed all failures. Is this early return fine or not?
Once the first expect fails, the program is in a broken state.
As such, early failure makes sense
Long term, this will be up to the platform
Like basic webserver probably will log and fail just a single request in the long term
Just linking to the PR for future searches: https://github.com/roc-lang/roc/pull/7768
Last updated: Jul 06 2025 at 12:14 UTC