Interface ICoverageDirScan
The result of IProjectManager.TryProbeCoverageDir(IEnumerable<IAbsoluteFilePath>, out IAbsoluteDirectoryPath, out ICoverageDirScan, out string, CancellationToken): what was found under a coverage directory, the files an analysis loads from this directory when it is the project coverage directory with no filter.
public interface ICoverageDirScan
- Extension Methods
Remarks
When at least one file of the directory itself is recognized as a coverage file, all the files of the directory are taken, sub-directories are ignored.
Else the directories named TestResults below the directory, and the ResultsDirectory of the .runsettings files in the directory and its child directories,
are searched, and only the newest test run found in each of them is kept (the layout of dotnet test --collect:"XPlat Code Coverage").
Properties (5)
Files
Gets the files an analysis loads: the coverage files of the newest test run(s) found below the directory, or all the files of the directory itself when at least one of them is recognized as a coverage file.
IReadOnlyList<IAbsoluteFilePath> Files { get; }
Property Value
FoundInSubDirs
Gets true when Files come from test results directories below the directory.
bool FoundInSubDirs { get; }
Property Value
NbOlderRunsFilesIgnored
Gets the number of recognized coverage files of older test runs, not part of Files.
int NbOlderRunsFilesIgnored { get; }
Property Value
NbRecognizedFiles
Gets how many of Files are recognized as coverage files. Zero means no coverage data was found.
int NbRecognizedFiles { get; }
Property Value
Technologies
Gets the distinct coverage technologies of the recognized files, like "Cobertura" or "OpenCover".
IReadOnlyList<string> Technologies { get; }