Is there an easy way to test more than one .roc
file at a time? I assume this could be done with a bash script, but I was hoping I could use roc test /files/*.roc
.
Probably not the solution you were looking for, but Fish shell will expand globs for you, so if you have two files a.roc
and b.roc
then roc test *.roc
is equivalent to running roc test a.roc b.roc
.
if you do roc test main.roc
(or just roc test
) it should find them all
it should test not just the file you specified, but also everything it imports (which from main.roc
should be everything)
Maybe you can also specify a folder? I am pretty sure we do something of that nature for testing all of the builtins, but i could be mixed up.
If not, would be a great pr to add
yeah that seems reasonable :thumbs_up:
all of the following seem like reasonable things to support:
.roc
filesroc test
on each .roc
file in that folder*Blah.roc
to specify multiple filesone important trick would be that when doing this we'd need to avoid duplicates - e.g. if multiple specified .roc
files import the same (potentially unspecified) .roc
file, we need to not run its tests more than once
Added as an Issue #5103.
Last updated: Jul 05 2025 at 12:14 UTC