TestEventLoggerTest.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.
Some very basic unit level test coverage for associating output at the test case level in JUnit XML files.

Also made some test fixtures for build TestResultProvider instances more reusable.

  1. … 12 more files in changeset.
adapted AbstractTestLoggerTest to previous change moved test from TestEventLoggerTest to AbstractTestLoggerTest

  1. … 1 more file in changeset.
test logging: log header for a standard out/err event only once per test method, not for each TestOutputListener event

  1. … 9 more files in changeset.
removed all convenience methods from TestLogging and TestLoggingContainer interfaces/implementations that are already auto-generated by Gradle

- adapted specs accordingly

  1. … 5 more files in changeset.
polishing

  1. … 1 more file in changeset.
use public rather than internal API for logging styled messages

- required fairly extensive changes to tests

- moved TestStyledTextOutput (and the new TestStyledTextOutputFactory) from core/test to core/testFixtures (and to non-internal package)

- made core/test depend on core/testFixtures

- removed obsolete spec

  1. … 18 more files in changeset.
added more tests

  1. … 1 more file in changeset.
reshuffled duties between AbstractTestLogger and TestEventLogger added spec for AbstractTestLogger

  1. … 5 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.
removed obsolete imports

  1. … 1 more file 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
    • +75
    ./TestEventLoggerTest.groovy
  1. … 31 more files in changeset.