nextest-rs / nextest

A next-generation test runner for Rust.
https://nexte.st
Apache License 2.0
2.17k stars 96 forks source link

Feature Request: Filter tests in a certain group #1574

Closed tisonkun closed 2 weeks ago

tisonkun commented 2 months ago

Nextest currently suppose grouping tests to run exclusively.

However, the filter DSL works in a irrelevant way, so that when I'd like to run a specific test group, I have to write the filter DSL twice and ensure they are the same.

It is possible to have a filter DSL such as group(group_name) to match all the tests in a certain group?

Maybe related to https://github.com/nextest-rs/nextest/issues/101 but subtly different.

sunshowers commented 2 months ago

Thanks! Good idea and one I'd been thinking about.

One issue is that this can introduce cycles in the execution graph for the DSL interpreter, but that's not too hard to handle. Will try getting to it in the next few weeks.