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

[SW-2479] Show Stack Trace of Exceptions in Failed Tests #2383

Merged
merged 2 commits into from
Nov 5, 2020
Merged

Conversation

mn-mikke
Copy link
Collaborator

@mn-mikke mn-mikke commented Nov 5, 2020

The current state:

ai.h2o.sparkling.DataSourceTestSuite > Reading H2OFrame using key option FAILED
    org.scalatest.exceptions.TestFailedException at DataSourceTestSuite.scala:41

After this change:

ai.h2o.sparkling.DataSourceTestSuite > Reading H2OFrame using key option FAILED
    org.scalatest.exceptions.TestFailedException: 1 equaled 1 Number of columns should match
        at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:530)
        at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:529)
        at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1560)
        at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:503)
        at ai.h2o.sparkling.DataSourceTestSuite.$anonfun$new$1(DataSourceTestSuite.scala:41)
        at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
        at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
        at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
        at org.scalatest.Transformer.apply(Transformer.scala:22)
        at org.scalatest.Transformer.apply(Transformer.scala:20)
        at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
        at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
        at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
        at org.scalatest.FunSuite.withFixture(FunSuite.scala:1560)
        at org.scalatest.FunSuiteLike.invokeWithFixture$1(FunSuiteLike.scala:184)
        at org.scalatest.FunSuiteLike.$anonfun$runTest$1(FunSuiteLike.scala:196)
        at org.scalatest.SuperEngine.runTestImpl(Engine.scala:286)
        at org.scalatest.FunSuiteLike.runTest(FunSuiteLike.scala:196)
        at org.scalatest.FunSuiteLike.runTest$(FunSuiteLike.scala:178)
        at org.scalatest.FunSuite.runTest(FunSuite.scala:1560)
        at org.scalatest.FunSuiteLike.$anonfun$runTests$1(FunSuiteLike.scala:229)
        at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:393)
        at scala.collection.immutable.List.foreach(List.scala:392)
        at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:381)
        at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:376)
        at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:458)
        at org.scalatest.FunSuiteLike.runTests(FunSuiteLike.scala:229)
        at org.scalatest.FunSuiteLike.runTests$(FunSuiteLike.scala:228)
        at org.scalatest.FunSuite.runTests(FunSuite.scala:1560)
        at org.scalatest.Suite.run(Suite.scala:1124)
        at org.scalatest.Suite.run$(Suite.scala:1106)
        at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1560)
        at org.scalatest.FunSuiteLike.$anonfun$run$1(FunSuiteLike.scala:233)
        at org.scalatest.SuperEngine.runImpl(Engine.scala:518)
        at org.scalatest.FunSuiteLike.run(FunSuiteLike.scala:233)
        at org.scalatest.FunSuiteLike.run$(FunSuiteLike.scala:232)
        at ai.h2o.sparkling.DataSourceTestSuite.org$scalatest$BeforeAndAfterAll$$super$run(DataSourceTestSuite.scala:29)
        at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
        at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
        at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
        at ai.h2o.sparkling.DataSourceTestSuite.run(DataSourceTestSuite.scala:29)

https://docs.gradle.org/6.5/dsl/org.gradle.api.tasks.testing.logging.TestLogging.html#org.gradle.api.tasks.testing.logging.TestLogging:showCauses

@mn-mikke mn-mikke merged commit 732aeba into master Nov 5, 2020
@mn-mikke mn-mikke deleted the mn/SW-2479 branch November 5, 2020 17:08
mn-mikke added a commit that referenced this pull request Nov 5, 2020
* [SW-2479] Show Stack Trace of Exceptions in Failed Tests

* Move showStandardStreams to testlogging section

(cherry picked from commit 732aeba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants