LouisCAD / kotlin-libraries-playground

A playground to gain a wider and deeper knowledge of the libraries in the Kotlin ecosystem. Also the official sample for gradle refreshVersions.
MIT License
180 stars 57 forks source link

Kotest assertions #83

Closed JohanneA closed 4 years ago

JohanneA commented 4 years ago

Closes #81

jmfayard commented 4 years ago

Thanks @JohanneA, that looks good!

I have just one request, please also copy/paste your example in a class testing.failing.FailingKotestAsserts like those https://github.com/LouisCAD/kotlin-libraries-playground/tree/main/kotlin-testing/src/test/kotlin/testing/failing where you make all the tests fails. We want to see how clear the error messages are.

You could use there assertSoftly { .... } so that you can have multiple tests fails without stopping at the first error https://kotest.io/assertions/#soft-assertions

JohanneA commented 4 years ago

Done 😃

jmfayard commented 4 years ago

Merged, thanks a lot @JohanneA !