Replies: 1 comment
-
|
If you're just manually setting the As to the errors -
or adding extra filter definitions to exclude unwanted parts of the code under test, or overriding
where overrides are provided as desired
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I am trying to set up AltCover with xUnit and Cake 3.0.0. According to docs I thought it should work, but I get this errors:
The assembly 'AltCover.Cake, Version=8.6.0.0, Culture=neutral, PublicKeyToken=null' is referencing an older version of Cake.Core (2.0.0).
For best compatibility it should target Cake.Core version 3.0.0.
Error: Error(s) occurred when compiling build script
error CS0103: The name 'cakeversion' does not exist in the current context
error CS0104: "Path" is an ambiguous reference between "Cake.Core.IO.Path" and "System.IO.Path".
error CS0103: The name 'reportDirectory' does not exist in the current context
In my .cake file I have this:
#addin "nuget:?package=Microsoft.TestPlatform.ObjectModel&Version=16.1.1"
#addin "nuget:?package=PowerShellStandard.Library&Version=5.1.0"
#addin "nuget:?package=altcover.api&Version=8.6.68"
#addin "nuget:?package=altcover.cake&Version=8.6.68"
public void RunTests(IEnumerable dlls)
{
CleanDirectory("./TestResults");
const string file = @"TestResults\VsTestDiag.log";
if (FileExists(file)) DeleteFile(file);
}
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions