Not able to import xunit test report and opencover code coverage

WARN: Could not import unit test report Expected either an “<” assemblies “>” or an “<“assembly “>” root tag, but got instead.
because 'Missing root element
i am facing these two issues for unit test and other for code coverage
dotnet sonarscanner begin /k:${sonarProjKey} /n:${sonarName} /v:${version} /d:sonar.host.url=”${sonarURL}” /d:sonar.cs.opencover.reportsPaths=“/coverage.cobertura.xml" /d:sonar.cs.xunit.reportsPaths="/XUnitResults.xml” /d:sonar.verbose=true
dotnet test ${projectPath} -c Release --filter “TestCategory!=Database&TestCategory!=InProgress” --no-build --no-restore --logger “trx;logfilename=XUnitResults.xml” --collect:“XPlat Code Coverage” /p:CollectCoverage=true “/p:CoverletOutputFormat=opencover” /p:Exclude=[xunit.]

Take a look at this thread.

Issue is resolved by adding --collect:“XPlat Code Coverage;Format=opencover”. for code coverage issue and for xunit test case i have added one nuget package(“XunitXml.TestLogger” Version=“3.0.78” ) of xunit it’s have tag now in test result.xml file then added below line
–test-adapter-path:. --logger “xunit;LogFileName=XUnitResults.xml” @Colin