fritz2 icon indicating copy to clipboard operation
fritz2 copied to clipboard

Evaluate migrating to a better test framework

Open chausknecht opened this issue 4 years ago • 4 comments

As the development of fritz2 started, the infrastructure for multiplatform projects was rather poor, as it was bleeding edge and lots of alpha status.

Meanwhile the ecosystem has evolved and there might be better choices for writing automated tests than the built-in test framework. The latter is rather weak when it comes to:

  • assertions (not expressive, no custom matchers, no grouping / multi assert)
  • data driven tests
  • property based testing is not supported at all
  • output rather limited (in failure case)

We should investigate, which frameworks are popular in the Kotlin multiplatform world and then pick one and try to invest two days or so to get a feeling, how much work it will be to migrate all our tests.

Frameworks (Please add):

chausknecht avatar Jun 22 '21 14:06 chausknecht

Kotest is currently unsuable with JS IR: https://github.com/kotest/kotest/issues/2163

Pitel avatar Jul 08 '21 09:07 Pitel

Thx for this information.

Bad and sad news... 😢

ghost avatar Jul 09 '21 08:07 ghost

Kotest 5.0 will support JS IR. It's already working in a feature branch and 5.0 will probably drop in around 4 weeks. The caveat is that 5.0 will DROP support for JS legacy (but that's going away anyway).

sksamuel avatar Jul 10 '21 20:07 sksamuel

Good news 👍 Thx for your efforts!

ghost avatar Jul 12 '21 10:07 ghost

Maybe in the future.

jwstegemann avatar Oct 27 '22 10:10 jwstegemann