DotCoverMerge does not exist error
- Dominant language
- C#
- Stars
- 4.2k
- Forks
- 778
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 19
Description
Hi Team,
I am using the below code to merge the multiple test projects. But I am facing the following error,
**CS0103 - The name 'DotCoverMerge' does not exist in the current context**
`#tool nuget:?package=NUnit.ConsoleRunner&version=3.2.0
#tool nuget:?package=JetBrains.dotCover.CommandLineTools
var target = Argument("target", "Default");
Task("Default")
.Does(() =>
{
CleanDirectory("./build");
MSBuild("./foo.sln", new MSBuildSettings().WithProperty("OutDir", MakeAbsolute(new DirectoryPath("build")).FullPath));
DotCoverCover(
tool => tool.NUnit3("./build/Foo.Test1.dll"),
new FilePath("./build/1.dcvr"),
null
);
DotCoverCover(
tool => tool.NUnit3("./build/Foo.Test2.dll"),
new FilePath("./build/2.dcvr"),
null
);
DotCoverMerge(new [] {
new FilePath("./build/1.dcvr"),
new FilePath("./build/2.dcvr")
},
new FilePath("./build/merged.dcvr"));
DotCoverReport(
"./build/merged.dcvr",
"./build/merged.html",
new DotCoverReportSettings {
ReportType = DotCoverReportType.HTML
}
);
});
RunTarget(target);`
So you please suggest how to solve the above issue?
Regards,
Jagadeesan
Contributor guide
Research direction
Start by checking the Cake dotCover API around the DotCoverCover and DotCoverReport calls and compare the available aliases with the requested DotCoverMerge call. Verify the pinned JetBrains.dotCover.CommandLineTools and NUnit.ConsoleRunner setup; done means the sample compiles and combines 1.dcvr and 2.dcvr into merged.dcvr.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100