Thanks to visit codestin.com
Credit goes to github.com

Skip to content

0.9.0 - "Pork Roast"

Choose a tag to compare

@christophsturm christophsturm released this 23 Dec 16:01
· 382 commits to main since this release

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 { ... } or val tests = testsFor("...") {} . top level describe
    functions are deprecated. Use idea inspect code to automatically replace deprecated versions.
  • Given is now accessed via a given property 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=true to your test run or set it in junit-platform.properties.
    It works pretty well and will become the default before 1.0

Changed

  • Remove all deprecated methods