Skip to content

Commit

Permalink
Add an integration test for DotNetAddPackage alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Marusyk committed Oct 7, 2023
1 parent 19d2fb0 commit 580f8fc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/integration/Cake.Common/Tools/DotNet/DotNetAliases.cake
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetFormat")
var project = path.CombineWithFilePath("hwapp/hwapp.csproj");

// When
DotNetFormat(project.FullPath);
DotNetFormat(project.FullPath);
});

Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetSDKCheck")
Expand Down Expand Up @@ -308,6 +308,19 @@ Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetWorkloadRestore")
DotNetWorkloadRestore(project.FullPath);
});

Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetAddPackage")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.Setup")
.Does(() =>
{
// Given
var path = Paths.Temp.Combine("./Cake.Common/Tools/DotNet");
var project = path.CombineWithFilePath("hwapp/hwapp.csproj");

// When
DotNetWorkloadRestore(project.FullPath);
DotNetAddPackage("Cake.FileHelper", project.FullPath);
});

Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetBuildServerShutdown")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.DotNetRestore")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.DotNetBuild")
Expand All @@ -329,6 +342,7 @@ Task("Cake.Common.Tools.DotNet.DotNetAliases.DotNetBuildServerShutdown")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.DotNetWorkloadRepair")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.DotNetWorkloadUpdate")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.DotNetWorkloadRestore")
.IsDependentOn("Cake.Common.Tools.DotNet.DotNetAliases.DotNetAddPackage")
.Does(() =>
{
// When
Expand Down

0 comments on commit 580f8fc

Please sign in to comment.