Skip to content

Commit 55f55e4

Browse files
committed
adding tests back into pipeline
1 parent c0f1acb commit 55f55e4

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

build.fsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,14 @@ Target.create "SetVersionForCI" (fun _ ->
9494
let changelog = getChangelog ()
9595
printfn "::set-env name=package_version::%s" changelog.NuGetVersion)
9696

97-
Target.create "Test" (fun _ -> DotNet.test id sln)
97+
Target.create "Test" (fun _ ->
98+
DotNet.exec (fun p ->
99+
{ p with
100+
Timeout = Some(System.TimeSpan.FromMinutes 10.) }) "run"
101+
"""--project "./tests/FSharp.CosmosDb.Analyzer.Tests/FSharp.CosmosDb.Analyzer.Tests.fsproj" -- --fail-on-focused-tests --debug --summary"""
102+
|> fun r ->
103+
if not r.OK
104+
then failwithf "Errors while running LSP tests:\n%s" (r.Errors |> String.concat "\n\t"))
98105

99106
Target.create "RunAnalyzer" (fun ctx ->
100107
let args =

0 commit comments

Comments
 (0)