DefaultTestLoggingTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Start migrating test classes to the most appropriate subproject

Story: gradle/langos#103

Item: refactor-plugins

  1. … 124 more files in changeset.
Simplified implementation of TestLogging.setShowStandardStreams

  1. … 1 more file in changeset.
Fix of ```test.testLogging.showStandardStreams = false``` The setter was ignoring the flag, so it wasn't possible to disable standardStreams using this setter.

The following sample easily demonstrates the problem with Gradle 2.2.1+:

```groovy

test {

testLogging {

showStandardStreams = false

}

// this prints true no matter what value you actually will use in assignment

println("In-tests logging configured: ${project.test.testLogging.showStandardStreams}")

}

```

  1. … 1 more file in changeset.
fixed rebase error

  1. … 7 more files in changeset.
improvements to test logging

- changed defaults

- logging of exceptions, causes, and stack traces can now be turned on and off individually

- added option for "short" exception logging

- don't show common stack trace elements between cause and parent trace

- improved implementation of entry point stack trace filter

- stack trace filters are now based on org.gradle.api.specs.Spec

- formatting tweaks

- added more tests

  1. … 28 more files in changeset.
redesign of test logging

- all logging options are declared in org.gradle.api.tasks.testing.logging.TestLogging

- TestLogging options can be varied per log level

    • -0
    • +69
    ./DefaultTestLoggingTest.groovy
  1. … 31 more files in changeset.