forked from fslaborg/FsMath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestTasks.fs
More file actions
41 lines (35 loc) · 1.41 KB
/
TestTasks.fs
File metadata and controls
41 lines (35 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module TestTasks
open BlackFox.Fake
open Fake.DotNet
open ProjectInfo
open BasicTasks
let runTests = BuildTask.create "RunTests" [clean; buildSolution] {
testProjects
|> Seq.iter (fun testProject ->
testProject
|> Fake.DotNet.DotNet.test (fun testParams ->
{ testParams with
Logger = Some "console;verbosity=detailed"
Configuration = DotNet.BuildConfiguration.fromString configuration
NoBuild = true
MSBuildParams = { testParams.MSBuildParams with DisableInternalBinLog = true }
}
|> DotNet.Options.withCustomParams (Some "-tl")
)
)
}
let runTestsWithCoverage = BuildTask.create "RunTestsWithCoverage" [clean; buildSolution] {
testProjects
|> Seq.iter (fun testProject ->
testProject
|> Fake.DotNet.DotNet.test (fun testParams ->
{ testParams with
Logger = Some "console;verbosity=detailed"
Configuration = DotNet.BuildConfiguration.fromString configuration
NoBuild = true
MSBuildParams = { testParams.MSBuildParams with DisableInternalBinLog = true }
}
|> DotNet.Options.withCustomParams (Some "--collect:\"XPlat Code Coverage\" --results-directory ./TestResults --settings ./coverlet.runsettings --logger trx --logger \"console;verbosity=detailed\"")
)
)
}