Skip to content

Runner

The Runner static class is the entry point for executing tests.

open type Scriptorium.Quill.Runner
Runner.runTests (tests: TestCase list) : int
Runner.runTests (test: TestCase) : int

Runs the test suite with default global configuration. Returns the exit code (0 = all passed, 1 = failures or CI guard triggered).

[<EntryPoint>]
let main _ =
Runner.runTests [
testList ("My suite", [ ... ])
]
Runner.runTestsWith (configurer: TestConfig -> TestConfig, tests: TestCase list) : int
Runner.runTestsWith (configurer: TestConfig -> TestConfig, test: TestCase) : int

Runs with a custom global configuration. The configurer is applied to TestConfig.Default to produce the global config.

[<EntryPoint>]
let main _ =
Runner.runTestsWith (timeout 10_000 >> slowThreshold 500, [
testList ("My suite", [ ... ])
])