testfx icon indicating copy to clipboard operation
testfx copied to clipboard

[Testing Platform] Count tests

Open thomhurst opened this issue 1 year ago • 2 comments

It'd be useful to pass in a flag to return a simple count of test nodes. This could help users/build systems perform things like parallel execution batching.

We could probably derive this from --list-tests but it would involve more cumbersome console output parsing.

This could be its own flag, such as --count-tests, or a more granular option for --list-tests

e.g. --list-tests count

thomhurst avatar Aug 12 '24 21:08 thomhurst

I do prefer the option to the --list-tests command. Relates to #3221.

Evangelink avatar Aug 13 '24 07:08 Evangelink

Works for me 😄

thomhurst avatar Aug 13 '24 07:08 thomhurst

Also related to https://github.com/dotnet/sdk/issues/49754

Youssef1313 avatar Jul 13 '25 09:07 Youssef1313