Just thought I'd mention this while I'm thinking of it.
But I'd love a way to #[ignore] a roc expect test. I currently go through and comment/uncomment code and it's less than idea.
I'm kinda curious what people think about this topic
I think in the context of a single code change where you just need to temporarily disable a test, commenting it out is comparable to having a dedicated way to ignore. Doing cmd+/ is very easy.
The main benefit I see for ignoring tests is when something can’t be fixed for an extended period and you want the tooling to remind you that it needs to be fixed. That doesn’t seem like a very common case though. In practice you’d probably have a bug ticket/issue tracking the problem, so deleting the tests and restoring from version control would be sufficient.
I think #[ignore] is much better:
roc check and don't just bitrot away as apis changeBrendan Hansknecht said:
- once we have effectful tests, we may want to ignore tests in specific configs anyway
hm, what kind of configs? :thinking:
Configs that don't want to hit a server? Or if you have effects that act different based on architecture
but maybe I am thinking too low level with that comment
sorry, I think I'm misunderstanding what a config means here :big_smile:
like a Roc version of Rust's cfg or something?
like a Roc version of Rust's
cfgor something?
yeah
so like for different build targets?
yeah. Different build target leads to different effect results.
I'd really like to avoid ever doing something like that if at all possible :sweat_smile:
I'd like an application author's mental model to be "I have one code base, and all of it always gets built all the time; if it build successfully on one target, it builds successfully on all the targets"
like I don't want to have to do the equivalent of cargo check with --target for all N targets I support to see if there are any type mismatches on any of my application's targets
rather, I want platform authors to design their APIs in such a way that target-specific differences are handled using ordinary conditionals (which might get optimized away depending on target)
I always appreciate ignore test functionality as a short-term convience for myself, but dislike it in larger codebases collaborated on with a larger team :sweat_smile: . Because I think once a test is ignored for a while, it gets increasingly hard to move away from that state.
Last updated: Jun 17 2026 at 14:56 UTC