Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError stop the Test Suite with NO error #554

Open
FabioPinheiro opened this issue Jul 10, 2022 · 0 comments
Open

NoClassDefFoundError stop the Test Suite with NO error #554

FabioPinheiro opened this issue Jul 10, 2022 · 0 comments

Comments

@FabioPinheiro
Copy link

FabioPinheiro commented Jul 10, 2022

Environment JVM
scalaVersion := "3.1.3"
munit = "1.0.0-M6"

import munit._

class MyTest extends FunSuite {
  test("test ok") {}
  test("BUG") {
    throw new java.lang.NoClassDefFoundError("WHY!")
  }
  test("test does not run") {}
}

This one took a few days to discover because of this silence error
The expectation is to:

  • have the second test case to fail with some error message.
  • to have the third test to run with no problem. (Or have some major error message saying that the test Suite was stopped!)

BTW, Also try Test / parallelExecution := false but makes no difference.
This does not affect other Test Suites.

This is NOT a scala.util.control.NonFatal Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant