TUI: be able to press ‘S’ to open the speedscope profile in a browser.
parallelN now limits with a pool of lanes instead of a semaphore, so a run produces N test timer profiles rather than one per test. The bound still covers the whole subtree, including nested parallel nodes.
BREAKING CHANGE: parallelN introduces parallelLanes instead of parallelSemaphore, and requires HasBaseContext. Claim a lane with withParallelLane rather than taking the QSem yourself; unlike the semaphore, it’s re-entrant.
Add withParallelLanes, withParallelLanesFromArgs and takeParallelLane, for limiting a spec tree you can’t wrap with parallelN (such as one from getSpecFromFolder).
Don’t leave children running when a parallel node stops waiting on them early.
Fix nodes being left Running or NotStarted forever when a subtree is cancelled, which hung the --print-failures formatter (and anything else that calls waitForTree).
Export optionsWarnOnLongExecutionMs and optionsCancelOnLongExecutionMs, which previously could only be set from the command line.
Keep acronyms intact in discovered folder names (#137).
createProcessWithLogging and readCreateProcessWithLogging close the parent’s copy of the logging pipe’s write end and spawn with close_fds, so the log reader reaches EOF when the process exits (avoids hang on Windows).
Shorten test folder names to keep paths under Windows’ MAX_PATH, preserving the tree structure. Configure with optionsMaxFolderPathLength/--max-folder-path-length (0 disables). It defaults to 200 on Windows, leaving 59 characters for files under MAX_PATH (260, including the terminating NUL).
BREAKING CHANGE: CommandLineOptions has a new field, optMaxFolderPathLength.
Fix build with containers >= 0.8.1, whose Data.Sequence now exports toList (#143).
Use UTF-8 for file paths and stdout/stderr regardless of locale, so test labels with non-ASCII characters work under e.g. LANG=C (#146).
Fix a hang after an unexpected exception in a node, and rethrow finalizeFormatter errors once the run has shut down instead of aborting the shutdown (#145).
0.3.1.0
Add a socket formatter (Test.Sandwich.Formatters.Socket) and a TUI debug socket (Test.Sandwich.Formatters.TerminalUI.DebugSocket).
Add process file logging in Test.Sandwich.Logging.ProcessFileLogging (createProcessWithFileLogging).
Add Test.Sandwich.ManagedAsync.
Add Test.Sandwich.Instrumentation.
Better avoid hangs from long running nodes (#118, #119).
Make --log-events capture all the way up to the end of runSandwich'.
Add --list-tests-json.
Improve speedscope timing (#114).
Fix an exception race and a typo in the introduce async exception handler.
Remove spaces from defaultTestArtifactsDirectory.
0.3.0.5
Preserve configured test artifacts directory (#109)
Better handling for introduce node failures (#110)
Make the type of xit closer to the type of it (#111).
0.3.0.4
Improve display of setup/work/teardown in TUI.
Ultimately use sigKILL in Sandwich.Util.Process.gracefullyWaitForProcess if sigINT and sigTERM don’t work.
Exit with failure status when tests fail (#103).
More work on test timing around setup/teardown.
Decided not to do test timing on introduceWith for now since it can mess up timing frame nesting.
Generate separate test timer profiles when a parallel node runs.
Get rid of haskell-src-exts usage and mark getSpecWarnOnParseError as deprecated.
Add ‘ContainerOptions’ type to Test.Sandwich.Contexts.Container.
Improve display of setup/work/teardown in TUI.
0.3.0.2
Re-fix compatibility for base < 4.14.0.0.
windows: fix Infinity -> maxBound for an Int.
0.3.0.1
Fix openFileExplorerFolderPortable on macOS.
Fix compatibility for base < 4.14.0.0.
0.3.0.0
Make createProcessWithLogging, readCreateProcessWithLogging etc. log with the callstack from the line where they’re called (and not an internal line).
Support GHC 9.8
BREAKING CHANGE: switch most monads away from using MonadBaseControl IO and switch to MonadUnliftIO. We also remove MonadThrow constraints, relying only on MonadIO for throwing exceptions.
Add support for sandwich-contexts, which is released with this version.
Add more HasCallStack to introduce nodes.
Add getContextMaybe, an optional version of getContext.
Fix an issue with name collisions of test tree folders.
Add shouldBeSet to Test.Sandwich.Expectations, for testing that lists are equal as sets.
Tweak some default visibility thresholds.
Improve openFileExplorerFolderPortable on Windows.
Add waitUntil function in Test.Sandwich.Waits.
0.2.2.0
Add primed versions of createProcessWithLogging etc. with customizable log level
Add Test.Sandwich.Util.Process with gracefullyStopProcess and gracefullyWaitForProcess (and remove these from an internal sandwich-webdriver module).
0.2.1.0
Improve clock management; don’t keep incrementing it when nothing and restart it when r/R are pressed.
0.2.0.0
Allow any formatter except TUI to be used with –repeat N.
Be able to include timestamps with print formatter and failure report formatter.
Support vty-6.x/brick-2.x. This change adds Windows support, but forces us to do a major version bump.
Add timing info for setup and teardown; closes #10
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.