Skip to content

TestConsoleMain should print stack traces for failed tests #141

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

Closed
scabug opened this issue Sep 29, 2007 · 3 comments
Closed

TestConsoleMain should print stack traces for failed tests #141

scabug opened this issue Sep 29, 2007 · 3 comments

Comments

@scabug
Copy link

scabug commented Sep 29, 2007

Current TestConsoleMain prints something like:

some test failed due to failed assertion: (no message), expected: 3, actual: 11

It is hard to find where test failed if test has many assertions declared in different methods. Need stack trace.

@scabug
Copy link
Author

scabug commented Sep 29, 2007

Imported From: https://issues.scala-lang.org/browse/SI-141?orig=1
Reporter: @stepancheg

@scabug
Copy link
Author

scabug commented Oct 2, 2007

@michelou said:
Fixed in rev 12973

Stack trace now appears in output; override method enableStackTrace to disable it.

class Test1 extends TestCase("Test1") {
  //override def enableStackTrace = false
  def runTest() {
    assertEquals("1: ", 3, 1)
  }
}

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone 2.6.1 deleted

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

No branches or pull requests

1 participant