From dd91d99685fbe20daed2ab7b3ace905bd2c51cfb Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Fri, 5 Jul 2024 08:58:20 +0100 Subject: [PATCH] update test only target --- Build/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build/Program.cs b/Build/Program.cs index 935eb0208..416023dce 100644 --- a/Build/Program.cs +++ b/Build/Program.cs @@ -122,10 +122,11 @@ void RemoveDirectory(string d) Target( TEST_ONLY, - DependsOn(RESTORE), + DependsOn(FORMAT), Glob.Files(".", "**/*.Tests.csproj"), file => { + Run("dotnet", $"restore {file} --locked-mode"); Run("dotnet", $"test {file} -c Release --no-restore --verbosity=normal /p:AltCover=true"); } );