I have the following behavior, if I set only the CoverletOutputDirectory without filename. The resulting files are written to the parent directory with combined filename of directory+format.
Example for configuration:
var covSettings = new CoverletSettings {
CoverletOutputDirectory = Directory("./Output/TestResults"),
CoverletOutputFormat = CoverletOutputFormat.opencover | CoverletOutputFormat. cobertura,
CollectCoverage = true
}
I get the following dorectory / file structure:
Output
TestResults.opencoder.xml
TestResults.cobertura.xml
instead of the expected structure:
Output
TestResults
results.opencover.xml
results.cobertura.xml
As I see in commandl ine, the path is send without ending /, so coverlet treat this as a file.
I have the following behavior, if I set only the
CoverletOutputDirectory
without filename. The resulting files are written to the parent directory with combined filename of directory+format.Example for configuration:
I get the following dorectory / file structure:
instead of the expected structure:
As I see in commandl ine, the path is send without ending
/
, so coverlet treat this as a file.As described here (https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/MSBuildIntegration.md) coverlet treat the
CoverletOutput
parameter as directory, if this ends with/
, as file in other cases.