Skip to content

Support of globbing #110

@pmiossec

Description

@pmiossec

In azure pipelines (also for other CI services I imagine), what is painful to replace usage of DotNetCoreCLI and prevent drop-in replacement is the lack of support of filepath globbing.

We could have something configured like:

     - task: DotNetCoreCLI@2
        displayName: Run Integration Tests
        inputs:
          command: test
          projects: '$(Build.SourcesDirectory)/**/*IntegrationTests.csproj'
          arguments: --no-restore --nologo --configuration $(buildConfiguration)

and the DotNetCoreCLI task will take care of running dotnet test for every csproj matching the projects globbing.

If we want to switch using dotnet retest, we can't replace it just by what is written in the README.md:

    - name: 🧪 test
      run: |
        dotnet tool update -g dotnet-retest
        dotnet retest -- --no-build [other test options and args]

because we need to handle the globbing ourself and run dotnet retest for every csproj files found.

So, is it something that could be included in dotnet retest to support the globbing?
dotnet retest will take care of finding the projects to run and run them all.
It would be great!

If you think it's outside the scope of the project, maybe we could discuss (and it will serve as documentation for others) about the easiest way to do that (because I don't have an idea of an easy one).

Thanks a lot in advance.

Back this issue
Back this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions