Skip to content

Commit

Permalink
updated cake syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPallister committed Apr 22, 2023
1 parent 4db816a commit 46b12a2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#tool "dotnet:?package=GitVersion.Tool&version=5.8.1"
#tool "dotnet:?package=coveralls.net&version=4.0.1"
#addin nuget:?package=Cake.Json&version=4.0.0
#addin nuget:?package=Newtonsoft.Json
#addin nuget:?package=System.Text.Encodings.Web&version=4.7.1
#tool "nuget:?package=ReportGenerator"
Expand Down Expand Up @@ -178,7 +177,7 @@ Task("RunUnitTests")
.IsDependentOn("Compile")
.Does(() =>
{
var testSettings = new DotNetCoreTestSettings
var testSettings = new DotNetTestSettings
{
Configuration = compileConfig,
ResultsDirectory = artifactsForUnitTestsDir,
Expand All @@ -188,7 +187,7 @@ Task("RunUnitTests")
};

EnsureDirectoryExists(artifactsForUnitTestsDir);
DotNetCoreTest(unitTestAssemblies, testSettings);
DotNetTest(unitTestAssemblies, testSettings);

var coverageSummaryFile = GetSubDirectories(artifactsForUnitTestsDir).First().CombineWithFilePath(File("coverage.cobertura.xml"));
Information(coverageSummaryFile);
Expand Down Expand Up @@ -233,7 +232,7 @@ Task("RunAcceptanceTests")
.IsDependentOn("Compile")
.Does(() =>
{
var settings = new DotNetCoreTestSettings
var settings = new DotNetTestSettings
{
Configuration = compileConfig,
ArgumentCustomization = args => args
Expand All @@ -242,14 +241,14 @@ Task("RunAcceptanceTests")
};

EnsureDirectoryExists(artifactsForAcceptanceTestsDir);
DotNetCoreTest(acceptanceTestAssemblies, settings);
DotNetTest(acceptanceTestAssemblies, settings);
});

Task("RunIntegrationTests")
.IsDependentOn("Compile")
.Does(() =>
{
var settings = new DotNetCoreTestSettings
var settings = new DotNetTestSettings
{
Configuration = compileConfig,
ArgumentCustomization = args => args
Expand All @@ -258,7 +257,7 @@ Task("RunIntegrationTests")
};

EnsureDirectoryExists(artifactsForIntegrationTestsDir);
DotNetCoreTest(integrationTestAssemblies, settings);
DotNetTest(integrationTestAssemblies, settings);
});

Task("CreateArtifacts")
Expand Down

0 comments on commit 46b12a2

Please sign in to comment.