It could be just me, but sometimes I have trouble identifying within a practically short enough instant of time exactly which tests have failed (I know the line numbers are displayed, but still), if the roc test output is large (due to the number of named values and/or their structure).
To help with this, I've started defining a name value of implicit type Str, so that I can have that in the output, in case the corresponding test fails.
Would it make sense for some related highlighting to be introduced. For example, the entire line could be printed in a different colour.
name: "Test #1 name"
A couple of options come to mind:
name(or equivalent) - the particular line displaying its value gets highlighted in the output (and it only gets output as it works currently - if the associated test fails). The corresponding "unused definition" warning should probably be suppressed.name or otherwise) to be the specially-treated one, it becomes a sort of a "reserved" name, associated with this proposed highlighting feature.name argument to expect or a parameters record - with optional values - argument to expect and running expectations will become:expect {}
...
or
expect { name: "Test #1 name" }
...
- Pro: This would enable highlighting of inline expectations as well.
Does a comment with a name or description above the expect work?
I think the their was most tests didn't need names and they can be added with doc comments if wanted
Yes, that's a great suggestion! It'd be substantially less disruptive.
Last updated: Jun 16 2026 at 16:19 UTC