Skip to content

Commit 3797527

Browse files
committed
add where expression as test argument to build.fsx
1 parent 04e1307 commit 3797527

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

build.fsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,22 @@ Target "UpdateAssemblyInfos"
124124
ReplaceAssemblyInfoVersionsBulk assemblyInfos (fun f ->
125125
{ f with AssemblyVersion = version }))
126126

127-
let test w =
127+
let test ``where`` =
128128
setRabbitMqCtlPath ()
129-
//TODO reimplement fixure selection
130-
let fixture = getBuildParamOrDefault "fixture" ""
131-
trace <| sprintf "fixture %s" fixture
129+
let w =
130+
match ``where``, getBuildParamOrDefault "where" "" with
131+
| (""|null), w -> w
132+
| _, (""|null) -> ``where``
133+
| w, x ->
134+
sprintf "(%s) & (%s)" w x
135+
trace <| sprintf "where %s" w
132136
!! ("./projects/client/**/build/**/unit-tests.dll")
133137
|> Testing.NUnit3.NUnit3 (fun p ->
134138
{ p with
135139
Labels = Testing.NUnit3.LabelsLevel.All
136140
ProcessModel = Testing.NUnit3.SingleProcessModel
137141
TimeOut = TimeSpan.FromMinutes 30.
138-
Where = w
142+
Where = w
139143
OutputDir = "test-output.log"})
140144

141145
Target "Test" (fun _ ->
@@ -158,7 +162,7 @@ Target "TestQuick" (fun _ ->
158162
TimeOut = TimeSpan.FromMinutes 30.
159163
Where = ``where``
160164
OutputDir = "test-output.log"}))
161-
165+
162166
Target "AppVeyorTest" (fun _ ->
163167
test "cat != RequireSMP & cat != LongRunning & cat != GCTest")
164168

fake.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
IF %1 == "" GOTO End
33
.paket\paket.bootstrapper.exe
44
.paket\paket.exe restore
5-
packages\FAKE\tools\FAKE.exe build.fsx %1
5+
packages\FAKE\tools\FAKE.exe build.fsx %*
66

77
:End
88
ECHO "no target specified"

0 commit comments

Comments
 (0)