Recommended as the new default, spec-node is a rich CLI runner that persists test results and takes parameters:
-
--example TEXTor-e TEXT- run only tests whose names include the given text. -
--example-matches REGEXor-E REGEX- run only tests whose names match the given regex. -
--fail-fast- stop the run after first failure. -
--only-failures- run only tests that failed on previous run. -
--next-failureor-n- run only failed tests and stop on first failure. Equivalent to –fail-fast –only-failures -
--timeout SECONDS- timeout for each individual test case, in seconds. -
--no-timeout- each individual test case is allowed to run for as long as it wants.
See the docs: Running | PureScript Spec - The Guide
Meanwhile, spec itself has undergone some related changes:
-
runSpecandrunSpecTrenamed torunSpecPureandevalSpecTrespectively to better convey their true nature. - Old versions of
runSpecandrunSpecTare left in, but deprecated, with the warning pointing tospec-node. -
evalSpecTstill supports theexitconfig option, still terminates the process with appropriate exit code, but prints a warning that the option is deprecated and will be removed in a future version, and that the consumer is encouraged to migrate tospec-node.
The first consumers of spec-node are the spec and spec-node projects themselves, as well as the new Spago.