maiflai / gradle-scalatest

A plugin to enable the use of scalatest in a gradle Scala project.
The Unlicense
73 stars 35 forks source link

Display full stacktraces #35

Closed samuelrivas closed 8 years ago

samuelrivas commented 8 years ago

Hi,

Is there any way to configure this plugin so that scalatest shows the full stacktrace for failed tests?

maiflai commented 8 years ago

Hi,

I've just pushed a feature branch called verbosity which tries to give more control over this via the standard gradle logging configuration.

test.testLogging.showCauses = true

Would you be able to test this to see if it does what you're looking for?

Thanks, Stu

samuelrivas commented 8 years ago

Yes, I'll take a look today.

samuelrivas commented 8 years ago

Yes, this does the trick. But isn't showCauses a strange flag choice?

By reading the TestLoggingContainer documentation, I would expect just something like this:

test.testLogging {
  exceptionFormat = "full"
  showExceptions = true
}
maiflai commented 8 years ago

ah, yes - good point. I'll update the feature.

maiflai commented 8 years ago

I've made that change - please could you take a look?

samuelrivas commented 8 years ago

Yes, it works for me.

Thanks!

maiflai commented 8 years ago

No worries - I've published https://github.com/maiflai/gradle-scalatest/releases/tag/0.13 which also includes a fix for the missing class in Gradle 2.14.1.

maiflai commented 8 years ago

Please can I close this issue?

samuelrivas commented 8 years ago

Absolutely!

Sorry, I didn't know you were waiting for me

onsdag 27 juli 2016 skrev maiflai notifications@github.com:

Please can I close this issue?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maiflai/gradle-scalatest/issues/35#issuecomment-235700521, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGkt4Hel2e825LlVn4X5KiMbnCUhHVKks5qZ7dMgaJpZM4JPzmr .

Samuel

maiflai commented 8 years ago

Cheers, closing now...