@@ -13,7 +13,6 @@ open Fake.DocFxHelper
1313let configuration = " Release"
1414
1515// Configuration values for tests
16- let testNetCoreVersion = " netcoreapp3.1"
1716let testNetVersion = " net6.0"
1817
1918// Metadata used when signing packages and DLLs
@@ -105,28 +104,6 @@ Target "RunTests" (fun _ ->
105104 | true -> !! " ./src/**/*.Tests.*sproj"
106105 | _ -> !! " ./src/**/*.Tests.*sproj" // if you need to filter specs for Linux vs. Windows, do it here
107106
108- let runSingleProject project =
109- let arguments =
110- match ( hasTeamCity) with
111- | true -> ( sprintf " test -c Release --no-build --logger:trx --logger:\" console;verbosity=normal\" --framework %s --results-directory \" %s \" -- -parallel none -teamcity" testNetCoreVersion outputTests)
112- | false -> ( sprintf " test -c Release --no-build --logger:trx --logger:\" console;verbosity=normal\" --framework %s --results-directory \" %s \" -- -parallel none" testNetCoreVersion outputTests)
113-
114- let result = ExecProcess( fun info ->
115- info.FileName <- " dotnet"
116- info.WorkingDirectory <- ( Directory.GetParent project) .FullName
117- info.Arguments <- arguments) ( TimeSpan.FromMinutes 30.0 )
118-
119- ResultHandling.failBuildIfXUnitReportedError TestRunnerErrorLevel.Error result
120-
121- CreateDir outputTests
122- projects |> Seq.iter ( runSingleProject)
123- )
124-
125- Target " RunTestsNet" ( fun _ ->
126- let projects = match ( isWindows) with
127- | true -> !! " ./src/**/*.Tests.*sproj"
128- | _ -> !! " ./src/**/*.Tests.*sproj" // if you need to filter specs for Linux vs. Windows, do it here
129-
130107 let runSingleProject project =
131108 let arguments =
132109 match ( hasTeamCity) with
@@ -320,7 +297,6 @@ Target "Nuget" DoNothing
320297
321298// tests dependencies
322299" Build" ==> " RunTests"
323- " Build" ==> " RunTestsNet"
324300
325301// nuget dependencies
326302" Clean" ==> " Build" ==> " CreateNuget"
@@ -332,7 +308,6 @@ Target "Nuget" DoNothing
332308// all
333309" BuildRelease" ==> " All"
334310" RunTests" ==> " All"
335- " RunTestsNet" ==> " All"
336311" NBench" ==> " All"
337312" Nuget" ==> " All"
338313
0 commit comments