Skip to content

Commit e12f3d1

Browse files
committed
fix conditional runTests target
1 parent f595528 commit e12f3d1

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Content/TestTasks.fs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,21 @@ let buildTests =
2323
)
2424
}
2525

26-
#endif
26+
let runTests = BuildTask.create "RunTests" [clean; build] {
27+
testProjects
28+
|> Seq.iter (fun testProjectInfo ->
29+
Fake.DotNet.DotNet.test
30+
(fun testParams ->
31+
{ testParams with
32+
Logger = Some "console;verbosity=detailed"
33+
Configuration = DotNet.BuildConfiguration.fromString configuration
34+
NoBuild = true
35+
})
36+
testProjectInfo.ProjFile)
37+
}
38+
39+
40+
#else
2741

2842
let runTests = BuildTask.create "RunTests" [clean; build] {
2943
testProjects
@@ -37,4 +51,6 @@ let runTests = BuildTask.create "RunTests" [clean; build] {
3751
}
3852
) testProject
3953
)
40-
}
54+
}
55+
56+
#endif

0 commit comments

Comments
 (0)