How to read test result reports on Travis CI?

后端 未结 3 955
天命终不由人
天命终不由人 2021-02-03 21:09

For my builds on Travis, I want to be able to read the test results when there are failing tests to see the stacktrace of those failing tests. Currently, these reports are store

3条回答
  •  名媛妹妹
    2021-02-03 21:34

    The easiest way to get useful output on the console about failing tests is to use the gradle test logging.

    test {
        testLogging {
            events "failed"
            exceptionFormat "short"
        }
    }
    

    For details and more options here have a look at the according chapter in the gradle userguide: http://gradle.org/docs/current/dsl/org.gradle.api.tasks.testing.logging.TestLoggingContainer.html

提交回复
热议问题