Releases: agourlay/cornichon
Releases · agourlay/cornichon
0.16.1
0.16.0
Artifacts renamed
cornichon
tocornichon-scalatest
cornichon-experimental
tocornichon-test-framework
This offers more clarity and flexibility in the choice of build tools.
For the ScalaTest flavor which integrates nicely with various build tools and CI pipeline:
// SBT
libraryDependencies += "com.github.agourlay" %% "cornichon-scalatest" % "0.16.0" % Test
For a more lightweight version without ScalaTest which works only with SBT and Mill:
// SBT
libraryDependencies += "com.github.agourlay" %% "cornichon-test-framework" % "0.16.0" % Test
testFrameworks += new TestFramework("com.github.agourlay.cornichon.framework.CornichonFramework")
// Mill
object test extends Tests{
def ivyDeps = Agg(ivy"com.github.agourlay::cornichon-test-framework:0.16.0")
def testFrameworks = Seq("com.github.agourlay.cornichon.framework.CornichonFramework")
}
Potential breaking changes
- upgrade to
akka 2.5
andakka-http 10.1.1
Improvements
- various performance improvements
- update internal dependencies to
cats 1.x
ecosystem
0.15.3
0.15.2
0.15.1
Bug fixes
- Matchers can now be used as top level expected value 058f5d9
Then assert body.path("city").is("*any-string*")
New features
- Three new ordering assertions exposed in the
JsonDsl
eda4a4d
Then assert body.path("publisher").is(
"""
{
"name":"DC",
"foundationYear":1934
}
"""
)
Then assert body.path("publisher.foundationYear").isLessThan(1935)
Then assert body.path("publisher.foundationYear").isGreaterThan(1933)
Then assert body.path("publisher.foundationYear").isBetween(1933, 1935)
Known issue
- a regression was introduced in this release regarding ignored keys
body.ignoring("myKey")
If the key is not present, the whole body is ignored and the test fails. It will be fixed shortly in 0.15.2
0.15.0
Breaking changes
- Updated to the cats 1.0.x eco-system
cats 0.9.0 -> 1.0.1
circe 0.8.0 -> 0.9.1
http4s 0.17.6 -> 0.18.0-M8
monix 2.3.1 -> 3.0.0-M3
- Akka dependency to 2.5.x is not hardcoded anymore but automatically pulled by akka-http for the time being
Bug fixes
WithHeaders
now encodes properly headers when more than one is supplied 426fe0b
0.14.3
Breaking changes
- The trait
Dsl
has been renamed toCoreDsl
for more clarity. AttachStep
case class does not accept anymore aString
for the step title as it was completely unused and misleading. UseAttachAsStep
if you wish to name your step.
Bug fixes
- Module
cornichon-experimental
reports the right scenario name in the report file.xml. 841ac2b
Features
- Introduce
FeatureRunner
to facilitate development of plugins https://github.com/agourlay/cornichon/blob/master/cornichon-core/src/main/scala/com/github/agourlay/cornichon/feature/FeatureRunner.scala#L8
0.14.2
0.14.1
0.14.0
There are no breaking changes in this release.
- @cneijenhuis added dynamic port selection to
http-mock
#160. - @cneijenhuis added 400 status and custom response body to
http-mock
#159. - improve log output of
ResourceStep
. - propagate properly the cleanup steps from
ResourceSteps
throughout the entire run. - dedicated section for
beforeEach
steps in logs. - major refactoring of
Scenario
execution engine to improve its design and performance. - remove unecessary
Session
merging creating duplicate entries. - introduce on
Step
aflatMap like
helper to chain steps using under the hood a newFlatMapStep
.
def chain(others: Session ⇒ List[Step]): Step
- avoid creating eagerly expensive messages for errors which can be recovered.
print_step
now resolves placeholder in its message.