scala - specs2: How to use "failtrace" option -
in specs2 tests, use helper functions test groups of conditions @ once. unfortunately, makes line number output of failed tests useless, since failures on same line.
google turned there's "failtrace" option output stack trace of failure. however, can't find example of how use that. in build.sbt? used on sbt command line? set somehow in constructor of specification class?
you can set failtrace option @ specification level:
class myspec extends org.specs2.mutable.specification { args.report(failtrace = true) ... } you can pass failtrace on sbt command line:
sbt> test-only *myspec* -- failtrace
Comments
Post a Comment