guibranco/GuiStracini.HolidayAPI

Run all coverage formats at once per project

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.
Run all coverage formats at once per project

Describe the solution you'd like
Replace the actual code:

- ps: $TEST_PROJECTS = (Get-ChildItem -Path .Tests** -Recurse -Include *.csproj).Fullname
- ps: $COVERLET_FORMATS = @('cobertura', 'lcov', 'opencover')
- ps: |
    foreach($testProject in $TEST_PROJECTS)
    {
        foreach($coverletFormat in $COVERLET_FORMATS)
        {
           dotnet test $testProject /p:CollectCoverage=true /p:CoverletOutputFormat="$coverletFormat"
        }
    }

With the following code:

- ps: $TEST_PROJECTS = (Get-ChildItem -Path .Tests** -Recurse -Include *.csproj).Fullname
- ps: |
    foreach($testProject in $TEST_PROJECTS)
    {
        dotnet test $testProject /p:CollectCoverage=true "/p:CoverletOutputFormat=`"cobertura,lcov,opencover`""
    }

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.