Skip to content

Commit 36d390f

Browse files
CopilotTheAngryByrd
andcommitted
Fix test runner arguments to use Expecto RunSettings format
Co-authored-by: TheAngryByrd <[email protected]>
1 parent dedef80 commit 36d390f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

build/build.fs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,13 @@ let getPkgPath () =
351351
let integrationTests ctx =
352352
!!testsGlob
353353
|> Seq.iter (fun proj ->
354-
let testArgs =
354+
let runSettingsArgs =
355355
[
356-
"--summary"
356+
"Expecto.summary=true"
357357
if isCI.Value then
358-
"--fail-on-focused-tests"
358+
"Expecto.fail-on-focused-tests=true"
359359
]
360-
|> String.concat " "
361-
362-
let args = [ sprintf "-- %s" testArgs ]
360+
|> List.map (sprintf "-- %s")
363361

364362
DotNet.test
365363
(fun c -> {
@@ -373,7 +371,7 @@ let integrationTests ctx =
373371
c.Common.Environment
374372
|> Map.add "MINISCAFFOLD_NUPKG_LOCATION" (getPkgPath ())
375373
}
376-
|> DotNet.Options.withAdditionalArgs args
374+
|> DotNet.Options.withAdditionalArgs runSettingsArgs
377375
})
378376
proj
379377
)

0 commit comments

Comments
 (0)