Skip to content

Instantly share code, notes, and snippets.

@zainab-ali
Created September 19, 2025 13:47
Show Gist options
  • Save zainab-ali/5df82162f455f26d9fb4d7bc76341736 to your computer and use it in GitHub Desktop.
Save zainab-ali/5df82162f455f26d9fb4d7bc76341736 to your computer and use it in GitHub Desktop.
Demonstrates bugs in DisciplineFSuite
//> 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