dotnet-test-rerun icon indicating copy to clipboard operation
dotnet-test-rerun copied to clipboard

Provide the ability to run all test projects using a glob pattern

Open dgkanatsios opened this issue 1 year ago • 1 comments

Currently, the DotNet test ADO task allows to run test projects using a glob pattern. For example,

 - task: DotNetCoreCLI@2
    displayName: Run tests
    inputs:
      command: 'test'
      projects: 'src/**/*.[Tt]est?(s).csproj'

This will recursively search all folders for files matching this pattern. It would be great if the tool supported this.

PS. There is a workaround to add all test .csproj files to a solution (.sln). However, this increases the execution time, since on retry, the tool will try and search for the failed tests in all .csproj projects in the .sln file.

dgkanatsios avatar Dec 05 '23 06:12 dgkanatsios