Changelog for skeletest-0.3.7
v0.3.7
New features:
- Support repeated CLI flags with
MultiFlag
Runtime changes:
- Fix
--foo=barto error when--foois aSwitchFlag- Previously, it would silently add
baras a positional argument
- Previously, it would silently add
- Allow multiple short CLI flags in one option
-abcwould be parsed as-a -b -cif all are switch flags-abcwould be parsed as-a -b cif-ais a switch flag and-bis an argument flag
v0.3.6
Runtime changes:
- Render exceptions in property tests the same as unit tests
- If property configuration (e.g.
Prop.setDiscardLimit) occurs afterforAllor IO actions, it now errors instead of silently being ignored - Support
MonadFailinprop - Add
SKELETEST_TEST_ROOTenv var
v0.3.5
Runtime changes:
- Fix circular dependency error when a session-scoped fixture errors (#72)
- Fix
P.matchesSnapshotwhen test changes CWD (#44) - Fix test failure messages when running test executable from different directory (#74)
v0.3.4
API changes:
- Replace
hookModifyFileSpecswithhookModifySpecRegistry - Remove field prefixes from many constructors (e.g.
Hooks,TestInfo, etc.) - Turn on
NoFieldSelectorseverywhere - Add
focusfor focusing a specific test (#58)
v0.3.3
Configuration:
- Add
-optF=main:_option for configuring the name of the main module/function (#64)
API changes:
- Added
shouldReturn
Runtime changes:
- Fix gray text output, using standard ANSI codes instead of a hardcoded RGB value
v0.3.2
API changes:
- Added
hookModifyFileSpecstoHooks(#59)
v0.3.1
API changes:
- Re-export
BoxSpecandBoxContentfromSkeletest.Plugin
Runtime changes:
- Tweak formatting of test failures/errors
v0.3.0
GHC support:
- Support GHC 9.14
New features:
- Automatically capture stdout/stderr (#1)
API changes:
- Specify order of type variables for
P.anythingso thatP.anything @Intworks
Runtime changes:
- Add location to error messages
- Render test failures/errors in more visible box
- Display the path of the test file instead of guessing a module name (#40)
- Flush stdout so test name is displayed while test is still running
v0.2.1
- Add
P.list
v0.2.0
- Move setting properties to
Skeletest.Prop - Add coverage functions for property tests
v0.1.1
- Support Diff-1.0
- Support GHC 9.12, drop support for GHC 9.6
v0.1.0
Initial release