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

    • -55
    • +0
    ./ClassMethodNameStackTraceSpecTest.groovy
    • -132
    • +0
    ./DefaultTestLoggingContainerTest.groovy
    • -252
    • +0
    ./FullExceptionFormatterTest.groovy
    • -70
    • +0
    ./ShortExceptionFormatterTest.groovy
    • -37
    • +0
    ./TruncatedStackTraceSpecTest.groovy
  1. … 112 more files in changeset.
Don't make assumptions about the TestDescriptor implementations when forwarding test progress events to the build client.

  1. … 7 more files in changeset.
Introduce TestListenerInternal, use this as the canonical way of receiving test events. Adapt TestListener and TestOutputListener to this internal type.

  1. … 11 more files in changeset.
Make DirectInstantiator a singleton.

    • -1
    • +1
    ./DefaultTestLoggingContainerTest.groovy
  1. … 89 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.
Reworked dealing with failures when serializing and deserializing throwables.

  1. … 5 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. … 11 more files in changeset.
REVIEW-862: map toString of original exception in PlaceholderException; add some more coverage to JunitIntegrationTest for broken exception handling

  1. … 9 more files in changeset.
adapted tests to previous test logging changes

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

test logging: log header for a standard out/err event only once per test method, not for each TestOutputListener event

- added missing class

    • -0
    • +25
    ./SimpleTestOutputEvent.groovy
test logging: log header for a standard out/err event only once per test method, not for each TestOutputListener event

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

- adapted specs accordingly

    • -5
    • +11
    ./DefaultTestLoggingContainerTest.groovy
  1. … 4 more files in changeset.
fixed rebase error

    • -2
    • +2
    ./DefaultTestLoggingContainerTest.groovy
  1. … 6 more files in changeset.
test logging: fixed output of "short" exception formatter for PlaceholderException

  1. … 2 more files in changeset.
test logging: added tests to ensure that PlaceholderException's are rendered correctly

    • -0
    • +23
    ./FullExceptionFormatterTest.groovy
    • -6
    • +17
    ./ShortExceptionFormatterTest.groovy
test logging: better handling of test method whose parent is not the test class

  1. … 1 more file in changeset.
fixed test class name

fixed tests

  1. … 1 more file in changeset.
introduced configuration options testLogging.displayGranularity

- also improved some tests and javadoc related to test logging granularity

- also fixed how root test suite gets displayed

  1. … 5 more files in changeset.
improved test logging defaults

    • -0
    • +126
    ./DefaultTestLoggingContainerTest.groovy
  1. … 1 more file in changeset.
fixed test line separator issue on windows

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. … 16 more files in changeset.
added more tests

reshuffled duties between AbstractTestLogger and TestEventLogger added spec for AbstractTestLogger

    • -0
    • +107
    ./AbstractTestLoggerTest.groovy
  1. … 2 more files in changeset.
changed test not to use exception constructors only introduced in JDK6+

    • -18
    • +18
    ./FullExceptionFormatterTest.groovy
polishing

removed use of AssertionError constructor that only exists since JDK7