i'm having a problem finding the origin of an exception, as the stack trace is printed truncted when testing with sbt (i use scalatest 1.6.1)
[info] java.io.IOException:
[info] at de.sciss.lucrestm.BerkeleyDB$System$$anonfun$read$mIc$sp$1.apply(BerkeleyDB.scala:255)
[info] at de.sciss.lucrestm.BerkeleyDB$System$$anonfun$read$mIc$sp$1.apply(BerkeleyDB.scala:249)
[info] at de.sciss.lucrestm.BerkeleyDB$System.de$sciss$lucrestm$BerkeleyDB$System$$withIO(BerkeleyDB.scala:230)
[info] at de.sciss.lucrestm.BerkeleyDB$System.read$mIc$sp(BerkeleyDB.scala:249)
[info] at de.sciss.lucrestm.BerkeleyDB$System$IntVal.get$mcI$sp(BerkeleyDB.scala:311)
[info] at de.sciss.lucrestm.BerkeleyDB$System$IntVal.transform$mcI$sp(BerkeleyDB.scala:315)
[info] at de.sciss.lucrestm.BerkeleyDB$System$IntVal.transform(BerkeleyDB.scala:315)
[info] at de.sciss.lucrestm.BerkeleyDB$System$IntVal.transform(BerkeleyDB.scala:310)
[info] at de.sciss.collection.txn.TotalOrder$Set$Entry.disposeData(TotalOrder.scala:184)
[info] at de.sciss.lucrestm.Mutable$class.dispose(Mutable.scala:48)
[info] ...
also last test-only doesn't give me useful info (it just shows some threading stuff, but not the above)
can i configure this somewhere so i get the full trace?
thanks, -sciss-
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>
sbt 0.7 has the trace command for configuring how much trace information is given.
sbt 0.10+ has the trace-level key.
Tony
java.lang.RuntimeException: Tests unsuccessful
at scala.sys.package$.error(package.scala:27)
at scala.Predef$.error(Predef.scala:66)
at sbt.Tests$.showResults(Tests.scala:168)
at sbt.Defaults$$anonfun$testOnlyTask$2$$anonfun$apply$13$$anonfun$apply$15.apply(Defaults.scala:315)
...
but not the underlying assertion that failed during the test
[info] Scenario: Verifying marked ancestor lookup *** FAILED ***
[info] java.lang.IndexOutOfBoundsException:
[info] at de.sciss.lucrestm.DataInput.readUnsignedInt(DataInput.java:422)
[info] at de.sciss.lucrestm.DataInput.readInt(DataInput.java:241)
...
this latter is still just 10 lines.....
thanks, -sciss-
> do i need to do anything special to enable this in scalatest testing? because if i just add like 'traceLevel := 20' this affects only the final print in testing which is like
>
> java.lang.RuntimeException: Tests unsuccessful
> at scala.sys.package$.error(package.scala:27)
> at scala.Predef$.error(Predef.scala:66)
> at sbt.Tests$.showResults(Tests.scala:168)
> at sbt.Defaults$$anonfun$testOnlyTask$2$$anonfun$apply$13$$anonfun$apply$15.apply(Defaults.scala:315)
> ...
>
> but not the underlying assertion that failed during the test
>
> [info] Scenario: Verifying marked ancestor lookup *** FAILED ***
> [info] java.lang.IndexOutOfBoundsException:
> [info] at de.sciss.lucrestm.DataInput.readUnsignedInt(DataInput.java:422)
> [info] at de.sciss.lucrestm.DataInput.readInt(DataInput.java:241)
> ...
>
> this latter is still just 10 lines.....
The stack trace is truncated by scalatest. The -F option gives full traces, which can be enabled with this setting:
testOptions in Test += Tests.Argument("-oF")
Peter