sandwich

Yet another test framework for Haskell

https://codedownio.github.io/sandwich

Version on this page:0.1.5.2
LTS Haskell 22.43:0.2.2.0
Stackage Nightly 2024-11-30:0.3.0.2
Latest on Hackage:0.3.0.2

See all snapshots sandwich appears in

BSD-3-Clause licensed by Tom McLaughlin
Maintained by [email protected]
This version can be pinned in stack with:sandwich-0.1.5.2@sha256:f6ee5cdb817040b155c57d7795e6ff88598821bad7779a0f585f683c16de12a3,9007

Please see the documentation.

Changes

Changelog for sandwich

Unreleased changes

0.1.5.2

  • Contexts: add pushContext and popContext helpers.

0.1.5.1

  • Logging: add readCreateProcessWithLogging

0.1.5.0

  • GHC 9.6 support

0.1.4.0

  • Windows improvements (fix “invalid argument (invalid character)”, fix console unicode output)
  • Add Alternative (ExampleT context m) instance

0.1.3.2

  • Prevent spurious messages in IOExceptions from withFile

0.1.3.1

  • Fix #61 (options not being passed from configured TUI formatter when --tui flag is used)

0.1.3.0

  • Add the –prune option (#69)

0.1.2.0

  • Be able to control sandwich-webdriver download directory.
  • Add flags to control sandwich-webdriver Selenium paths: --selenium-jar, --chrome-binary, --chromedriver-binary, --firefox-binary, --geckodriver-binary.

0.1.1.2

  • Improve semantics of multiple --filter/-f arguments. Now they get applied to the test tree sequentially.

0.1.1.1

  • Fix error symlink creation on Windows (don’t allow invalid characters).

0.1.1.0

  • Be able to accept multiple --filter/-f arguments. A test must match all of them to be run.
  • Windows support.

0.1.0.11

  • Initial release Test.Sandwich.Golden for golden testing.
  • Support Brick 1.x in addition to 0.x.

0.1.0.10

  • Add Markdown Summary formatter (useful with GitHub Actions)
  • Release sandwich-hedgehog compatibility.

0.1.0.9

  • Expose optionsDryRun and the --dry-run option.
  • Add command-line arguments for sandwich-quickcheck.
  • Add --visibility-threshold/-v option.
  • Fix an issue where TUI quit would hang in the presence of cleared results.
  • Display number of tests run in output message.
  • Catch and log exceptions in the TUI event loop.
  • Change runSandwichWithCommandLineArgs to use the print formatter by default, since we can’t figure out how to detect if we’re running under cabal test, which redirects stdout.

0.1.0.8

  • GHC 9 support

0.1.0.7

  • Add terminalUICustomExceptionFormatters.

0.1.0.6

  • Add parallelN for limiting the number of threads in a parallel.