joaoopereira / dotnet-test-rerun

automatic rerun dotnet failed tests
https://www.nuget.org/packages/dotnet-test-rerun
GNU General Public License v3.0
27 stars 7 forks source link

Feature: on re-run, search only the test projects/assemblies that contain the failed tests #118

Open dgkanatsios opened 9 months ago

dgkanatsios commented 9 months ago

Context: assume that we use the tool on an .sln file that contains a lot of test (and, maybe, non-test projects).

Upon execution, tool will run dotnet test which will search for tests in all the test projects, execute them. If there are failures, the tool will re-run dotnet test on all the test projects searching for the failed tests, having a performance impact.

Would it be possible, on re-run, to run dotnet test on the test projects (or even the DLLs) that contain the failed tests?

Thanks again for this great library!

ricardofslp commented 9 months ago

Hi @dgkanatsios,

When we think about a solution for #117 we could try to see if the solution would also match this use case. Will try to think of something that would make sense to be supported here.