Skip to content

Don't Append Framework to File if -f is Specified #667

@abbotware

Description

@abbotware

my output file name is being mangled when I specify -f (for framework)

in the below use case it is only running the one framework not multiple

dotnet test $Source --filter $TestFilter -f $Framework -c $Configuration /p:NetCoreSdk=$NetCoreSdk --logger:"trx;LogFileName=$TrxFile" --results-directory:$TestResultsPath /p:CoverletOutputFormat=cobertura /p:CoverletOutput=$TestResultsPath$CoverageDataFile /p:CollectCoverage=true /p:ExcludeByAttribute="Obsolete%2cGeneratedCodeAttribute%2cCompilerGeneratedAttribute" -nodeReuse:false

where $CoverageDataFile=project.Release.linux-x64.netcoreapp3.1.coverage.xml
and for some reason the output file is actually:
project.Release.linux-x64.netcoreapp3.1coverage.netcoreapp3.1.xml.cobertura.xml

i believe this is related to #636

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions