0.9.0 - "Pork Roast"
0.9.0 - "Pork Roast" - 2023-12-23
Highlights of 0.9 are the new junit engine and the extended support for fixtures via given
There are also new deprecations while the api is fine-tuned in response to using failgood in all kinds
of test suites.
Use idea inspect code to automatically replace deprecated versions.
Fixed
- afterEach and dependency are no longer available in the TestDSL, where it makes no sense to have them.
Changed
- tests are now created via
val tests = tests { ... }orval tests = testsFor("...") {}. top leveldescribe
functions are deprecated. Use idea inspect code to automatically replace deprecated versions. - Given is now accessed via a
givenproperty instead of a parameter to the test function - Given block can now lazily access the parent context
- Private test classes now throw an error instead of being ignored. Now that we find tests by Annotation, it
makes no sense to mark a class as a Test and make it private. - The Root context name now contains the name of the test file when it makes sense
Added
- Added SuspendAutoCloseable interface with a suspend close function and support it in the autoClose method
- The Root context can now also have a given block
- New junit platform engine that is totally async
To try it out add-Dfailgood.new.junit=trueto your test run or set it injunit-platform.properties.
It works pretty well and will become the default before 1.0
Changed
- Remove all deprecated methods