INNER CODE UNIT · C#
testProjects
hamed-shirbandi/TaskoMask · src/6-Build/Build.cs:154
var testProjects = Solution.AllProjects.Where(s => s.Name.EndsWith("Tests.Unit"));
DotNetTest(a =>
a.SetConfiguration(Configuration)
.SetNoBuild(true)
.SetNoRestore(true)
.ResetVerbosity()
.SetResultsDirectory(TestResultDirectory)
.EnableCollectCoverage()
.SetCoverletOutputFormat(CoverletOutputFormat.opencover)
.SetExcludeByFile("*.Generated.cs")
.EnableUseSourceLink()
.CombineWith(
testProjects,
(b, z) =>
b.SetProjectFile(z)
.AddLoggers($"trx;LogFileName={z.Name}.trx")
.SetCoverletOutput(TestResultDirectory + $"{z.Name}.xml")