You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there a way to skip tests based on an ad-hoc run-time condition? #293
Sadly, there is not. The closest that Alcotest gets to this is the `Quick/`Slow tags on tests.
The need for a more generalised form of that feature is tracked by #124. I have a WIP draft of an "Alcotest 2.0" API that aims to let users attach arbitrary metadata to tests and then pass filters over that metadata at run-time, which I hope will meet this need.
Activity
craigfe commentedon Feb 22, 2021
Sadly, there is not. The closest that Alcotest gets to this is the
`Quick/`Slowtags on tests.The need for a more generalised form of that feature is tracked by #124. I have a WIP draft of an "Alcotest 2.0" API that aims to let users attach arbitrary metadata to tests and then pass filters over that metadata at run-time, which I hope will meet this need.
MisterDA commentedon Mar 27, 2023
This has been (partially?) fixed with #368, released in Alcotest 1.7.0, with
Alcotest.skip.samoht commentedon Nov 2, 2026
As per @MisterDA's answer, there is now a way to do this. So I'm closing the issue. Feel free to re-open if that doesn't work for you!