Module

Test.Spec.Config

Package
purescript-spec
Repository
purescript-spec/purescript-spec

#Config Source

type Config = { exit :: Boolean, failFast :: Boolean, filterTree :: TreeFilter, slow :: Milliseconds, timeout :: Maybe Milliseconds }

Configuration options for the test runner.

This type defines various settings that control the behavior of the test runner.

Config has the following fields

  • slow: Threshold of time beyond which a test is considered "slow".
  • timeout: An optional timeout, applied to each individual test. When omitted, tests are allowed to run forever.
  • exit: When true, the runner will exit the Node process after running tests. If false, the runner will merely return test results.
  • failFast: When true, first failed test stops the whole run.
  • filterTree: The spec tree goes through this function before execution. Can be used to filter out test cases, rearrange, annotate, etc.

#TreeFilter Source

newtype TreeFilter

Constructors

#defaultConfig Source