typelevel / munit-cats-effect

Integration library for MUnit & cats-effect
Apache License 2.0
149 stars 34 forks source link

Tests hang when testing with scala-cli #340

Closed KristianAN closed 8 months ago

KristianAN commented 8 months ago

Tests never finish when being ran with scala-cli. Same tests finish when runnning with sbt. If i make a test fail it does not hang.

Minimal case that hangs, also happens for FunSuite. If I remove the dep on munit-ce it works again.

project.scala

//> using scala "3.3.1"

//> using test.dep "org.scalameta::munit:0.7.29"
//> using dep "org.typelevel::cats-effect:3.5.2"
//> using test.dep "org.typelevel::munit-cats-effect:2.0.0-M3"

Tests

import munit.CatsEffectSuite
import cats.effect.IO

class MyTestSuite extends CatsEffectSuite:

  test("minimal"):
    IO:
      assert(true)

Scala CLI version: 1.0.4

armanbilge commented 8 months ago

Latest munit is v1.0.0-M10, please try that.

https://github.com/scalameta/munit/releases/tag/v1.0.0-M10

KristianAN commented 8 months ago

This fixes it.

armanbilge commented 8 months ago

I've released munit-cats-effect v2.0.0-M4 which brings in the latest, fixed version of munit automatically.

https://github.com/typelevel/munit-cats-effect/releases/tag/v2.0.0-M4