sandwich

Yet another test framework for Haskell

https://codedownio.github.io/sandwich

Version on this page:0.1.5.0
LTS Haskell 22.36:0.2.2.0
Stackage Nightly 2024-10-03:0.2.2.0
Latest on Hackage:0.2.2.0

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.0@sha256:0c9d25aec22a0d4de6431703a6cd466cf099f6b418928ee2843389d0c135da21,8937

Please see the documentation.

Changes

Changelog for sandwich

Unreleased changes

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.