Module
Test.Spec.Runner
- Package
- purescript-spec
- Repository
- purescript-spec/purescript-spec
#runSpecT Source
runSpecT :: forall m. Functor m => Config -> Array Reporter -> SpecT Aff Unit m Unit -> m (Aff (Array (Tree String Void Result)))Run the spec with config, returning the results, which
are also reported using specified Reporters, if any.
If configured as such, exit the program upon completion
with appropriate exit code.
Re-exports from Test.Spec.Config
#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: Whentrue, the runner will exit the Node process after running tests. Iffalse, the runner will merely return test results.failFast: Whentrue, 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.
- Modules
- Test.
Spec - Test.
Spec. Assertions - Test.
Spec. Assertions. String - Test.
Spec. Config - Test.
Spec. Console - Test.
Spec. Reporter - Test.
Spec. Reporter. Base - Test.
Spec. Reporter. Console - Test.
Spec. Reporter. Dot - Test.
Spec. Reporter. Spec - Test.
Spec. Reporter. Tap - Test.
Spec. Reporter. TeamCity - Test.
Spec. Result - Test.
Spec. Runner - Test.
Spec. Runner. Event - Test.
Spec. Speed - Test.
Spec. Style - Test.
Spec. Summary - Test.
Spec. Tree