Stream: contributing

Topic: `roc test` multiple files


view this post on Zulip Chris Duncan (Oct 10 2022 at 21:08):

Currently, the roc test command only checks one file at a time. Do we want to test multiple files at once?

I want to have Roc test all the files in the crates/compiler/builtins/roc directory without having to execute the command once per file.

view this post on Zulip Richard Feldman (Oct 10 2022 at 21:12):

I like the idea of having it test more than one!

view this post on Zulip Chris Duncan (Oct 10 2022 at 22:37):

@Ayaz Hafiz, I just started reading the file you recommended here. It will take me a while to interpret it since I don't have much experience with Rust.

view this post on Zulip Chris Duncan (Oct 10 2022 at 22:55):

Is there a sample of a test that tests roc test? I tried looking here crates/cli/tests/cli_run.rs but didn't find anything that fits.

view this post on Zulip Ayaz Hafiz (Oct 11 2022 at 01:38):

there are some tests here: https://github.com/roc-lang/roc/blob/5a7211d874224c9bb6f8a709bb5f41ec383286c1/crates/repl_expect/src/lib.rs#L213

view this post on Zulip Ayaz Hafiz (Oct 11 2022 at 01:39):

happy to chat about this if you'd like, as I'm sure anyone else in the channel would be


Last updated: Jul 06 2025 at 12:14 UTC