guibranco / SmtpLw

:postbox: :envelope: SmtpLw - SMTP Locaweb - Cliente da API do SMTP dedicado da Locaweb

Home Page:https://guibranco.github.io/SmtpLw/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run all coverage formats at once per project

guibranco opened this issue · 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.