Criterion icon indicating copy to clipboard operation
Criterion copied to clipboard

Add an `.only` test configuration

Open martijnthe opened this issue 8 years ago • 0 comments

It would be nice to be able to write...

Test(simple, xyz, .only = true) {
   ...

... which would run only this test case.

I would use it during development for the test I'm currently working on. I realize you can do this through CLI arguments as well, but that means I've have to change the test runner command all the time, which means a context switch away from the .c file I'm working on.

The idea was not my own, credit goes to: https://github.com/avajs/ava#running-specific-tests

martijnthe avatar Feb 02 '17 20:02 martijnthe