| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
NanoUI.Testing.Runner
Description
Shared runner for the exitcode-stdio integration suites: runs named
specs against fresh contexts, selecting them by command-line name.
Documentation
runTests :: [(String, IO Context, Context -> IORef Int -> IO ())] -> IO () Source #
Run the given specs. Each entry is a test name, a context maker, and the test body (which receives the context and a shared failure counter). Names passed as program arguments select which tests run; with no arguments everything runs. A test counts as failed when it incremented the counter.