Created
September 19, 2025 13:47
-
-
Save zainab-ali/5df82162f455f26d9fb4d7bc76341736 to your computer and use it in GitHub Desktop.
Demonstrates bugs in DisciplineFSuite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala "3.7.3" | |
//> using test.dep org.typelevel::weaver-cats::0.10.1 | |
//> using test.dep org.typelevel::weaver-discipline::0.10.1 | |
import weaver.* | |
import weaver.discipline.* | |
import cats.effect.IO | |
object DisciplineBug extends SimpleIOSuite with DisciplineFSuite[IO] { | |
// The DSL exposed in SimpleIOSuite isn't used because the test registration is overridden | |
pureTest("This should run but isn't") { | |
expect(1 == 2) | |
} | |
// The TestName filters are ignored by D | |
checkAll("This should not be run, but is".ignore)(_ => | |
IO.raiseError(new Error("This should not be run"))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment