Repository navigation
This release ships a brand-new documentation website and tightens up a few rough edges in the matchers and DSL.
This means a handful of breaking changes so please skim the Migration notes below before upgrading.
Migration notes
Most users should see little or no impact, but a few changes can flip previously green tests to red without a compile error:
<any-integer>no longer matches floats. Any assertion using<any-integer>against a JSON field that holds a floating-point value (e.g.1.5, or0.1serialized as a float) will now fail.- Switch to the new
<any-number>matcher when you want to accept any numeric value.
- Switch to the new
<any-alphanum-string>no longer matches empty strings.- Tests relying on the previous (buggy) behavior will start failing.
for_allbuilder is now tupled. For arities 2-6, replacebuilder(a)(b)…withbuilder(a, b, …)at call sites.AssertStepmust be non-blocking. It now runs on the compute pool viaIO.delayinstead ofIO.interruptible.cornichon-scalatestandcornichon-kafkamodules are dropped.- ScalaTest users should migrate to
cornichon-test-framework. - There is no alternative to
cornichon-kafkaoutside of copying the DSL.
- ScalaTest users should migrate to
Breaking changes
- Drop
cornichon-kafkamodule e69d3a9e - Drop
cornichon-scalatestmodule a6be3600 AssertStepnow runs on the compute pool viaIO.delay(wasIO.interruptible).- Assertions must be non-blocking; move blocking work (
Thread.sleep, network calls, etc.) toEffectStep, otherwise
Eventually/RepeatConcurrentlycancellation will not interrupt them 42f0efee
- Assertions must be non-blocking; move blocking work (
for_allbuilder signature changed from curried (A => B => Step) to tupled ((A, B) => Step) for arities 2-6 — call sites must be updated cf1b5656- Matcher
any-integerno longer matches floating-point numbers (predicate is now_.asNumber.flatMap(_.toInt).isDefined)- use the new
any-numbermatcher to accept any numeric value fd3cabe5
- use the new
- Matcher
any-alphanum-stringno longer accepts empty strings 4f26735d
Improvements
- Add timeout on
WithinStep101c2697 Sessionnow handles negative indexes 26648b1f- New
anyNumbermatcher for any numeric value fd3cabe5 - Model checker fails on negative weight ed93f801
- Display all errors from
afterFeaturehooks instead of only the first a84a8c85 - Do not short-circuit when running
afterFeaturehooks 5e2c49de - Improve error reporting for non-JSON payload 0d7c6b96
- Harden HTTP mock server 00aea4c1
Bug fixes
- Fix transition probability in model checker 810a43c1
- Fix cleanup steps propagation in wrapper steps (
RepeatStep,RetryMaxStep) 0f3a2a2e - Fix
Sessionget throwingIndexOutOfBoundsExceptiona15dc763 - Fix datatable detector acafc764
- Fix
WithinStepfailure log 23a2ffd4
Performance
- Avoid reallocating in JSON folder 0b442853
- Optimize
JsonMapper506b8598 - Optimize
parseDslStringJsone52c566d - Optimize
findAllPathWithStringValuenow buildsVector[JsonPathOperation]6edc401b - Optimize Matcher path finder 6120181e
- Avoid allocating
Resolvableform when there are no placeholders 7e61c95c - Configure request duplicates once 343e2260
Documentation
- Migrate site from
sbt-micrositetosbt-laika11377c9d - Major restructure with new sections (syntax reference, performance tuning, errors page & braceless syntax)
- Refreshed landing page and quickstart, cleaner light mode, cross-page links, callout sections
Internal
- Remove
pureconfigdependency in favor of simpler manual config loading cf85ecb9 - Adopt
scalafmtfor the codebase, with formatting checks enforced on CI d8c6dec1, 21134d87
Dependency updates
cats-effect3.6.3 → 3.7.0fs23.12.2 → 3.13.0http4s0.23.33 → 0.23.34sangria4.2.15 → 4.2.18diffson-circe4.6.1 → 4.7.0decline2.5.0 → 2.6.2munit1.2.1 → 1.3.0