Clone Tools
  • last updated a few seconds ago
Constraints: committers
Constraints: files
Constraints: dates
Remove org.gradle.readLoggingConfigFile

The previouslt deprecated system property is no longer supported and

simply ignored from now on.

Resolves #6301.

  1. … 4 more files in changeset.
Fix NPE in RestartEveryNTestClassProcessor.stopNow() (#5145)

* Fix NPE in RestartEveryNTestClassProcessor.stopNow()

* Add test verifying RestartEveryNTestClassProcessor.stopNow() after stop() does nothing

    • -0
    • +18
  1. … 1 more file in changeset.
Run previous failed test first (#4557)

Run previous failed test first

This fixes

Before the test starts, we collect all failed test classes from the result of last test, and

send them to test worker process first - this is transparent to test infrastructure because

we didn't make any guarantee about test class execution order previously.

    • -0
    • +49
  1. … 8 more files in changeset.
Stop test execution after first failure (#4190)

* Rough pass at stopNow() on test failure

* Updated worker TestClassProcessor.stopNow() to throw UnsupportedOperationException

* Updated MaxNParallelTestClassProcessor to keep "raw" processors for stopNow().

Updated other daemon-side TestClassProcessors to keep track if stopNow() is called.

* Added AbstractTestTask.getFailFast()

* Added some unit tests for to TestClassProcessors

* Added unit tests for stopNow()

* Rough pass at JUnitFailFastIntegrationTest

* Refactor fail fast JVM integration test.

Moved common logic/tests from JUnitFailFastIntegrationTest into AbstractJvmFailFastIntegrationSpec.

Added TestNGFailFastIntegrationTest (which extends TestNGFailFastIntegrationTest)

* Working on forkEvery fail fast test

* Converted FailFastTestListener to FailFastTestListenerInternal

* Added BlockingHttpServer.expectMaybeAndBlock()

* TestNG parallel & fail-fast integration test

* Remove unused import

* Remove unused import

* Marked test.failFast as @Input

* Added `failFast` to java_plugin in userguide

* Javadoc & formatting changes

* Updated userguide docs based on review comments

* Moved `failFast` configuration from `AbstractTestTask` to `Test` to avoid `XCTest`

* Updates from review comments

* More updates from review comments

* Reduced Mock() usage in FailFastTestListenerInternalTest

* Backed out changes to XCTestExecuter for fail fast behavior

* Fixed typo in javadoc

* Remove --no-fail-fast `@Option` from `Test`

* Reduce mocking expectations in ForkingTestClassProcessorTest

* Moved @Internal from Test.getFailFast() to AbstractTestTask

* Formatting updates

* Updated ForkingTestClassProcessor to track state more precisely to avoid stop() & stopNow() problem

* Fixed tests (again)

* Better handling of mutual exclusion between ForkingTestClassProcessor stop() and stopNow() sections

* Improved resiliency to indeterminate generated test class execution in fail fast tests

* Optimized imports

* Updated DefaultWorkerProcess.cleanup() to stop the Stoppables before aborting the execHandle

* Changed CyclicBarrierAnyOfRequestHandler.expected back to `private`

* ForkingTestClassProcessor.stoppedNow does not need to be `volatile` as it is now protected by a lock

* Added JUnitPlatformTestClassProcessor.stopNow()

* Removed mention of --no-fail-fast from user guide

* Added info on --fail-fast to release notes

* Fixed use of `testOmitted` in AbstractJvmFailFastIntegrationSpec

* Make MaxNParallelTestClassProcessor drop any processTestClass() invocations after stopNow()

* Protected critical region in ForkingTestClassProcessor.processTestClass() causing race condition with stopNow() in tests

* Debugging cleanup

    • -0
    • +35
    • -1
    • +56
  1. … 40 more files in changeset.
Simplify time handling internally and for build scans (#2857)

* Don't make TimeProvider Serializable.

This isn't safe and generally doesn't make sense.

* Extract and promote the concept of a build timer.

This was previously not well defined and being overlaid with the concept of when a user/tool requested something, which is not always the same thing.

* Pare down the deprecated org.gradle.util.Clock down to the minimum required.

Internal usage is replaced by a `getStartTime()` directly on BuildRequestContext.

What is left is only kept for backwards compatibility with scans.

* Rename TimeProvider to Clock.

* Move BuildExecutionTimer out of baseServices into core, and into a better package.

* Remove unused.

* Simplify the time package by merging types.

* Prevent the client's build started timestamp from being later than when the provider received the build request.

* Provide a dedicated mechanism for conveying the build start time to build scans.

* Consolidate the ways of formatting durations.

  1. … 179 more files in changeset.
Moved `Clock` and `TimeProvider` into a separate package

This commit reverts recent changes to the API of

`org.gradle.util.Clock`, and instead deprecates the existing type

replacing with a new internal type. This was done because the

`ExtractDslMetaDataTask` uses this type for timing, and external plugins may have copied this pattern.

`org.gradle.util.Clock` is now deprecated.

  1. … 103 more files in changeset.
Convert TestMainActionTest from JMock to Spock

Assert interactions in order in RestartEveryNTestClassProcessorTest

+review REVIEW-6154

    • -2
    • +36
Convert RestartEveryNTestClassProcessorTest to Spock

+review REVIEW-6154

    • -0
    • +125
    • -156
    • +0
Avoid using deprecated JMock method

The module language-java uses strict compilation and therefore failed the build.

    • -30
    • +30
  1. … 24 more files in changeset.
Remerge #569 for custom JUL in tests.

- We are okay turning this on by default because we are providing users

with a way to disable it if there tests start failing.

  1. … 6 more files in changeset.
Revert "Merge pull request #569 from cawka/master" and others

This reverts commit 9455291d1d4a31312cd0ad0652d222736479b730.

This reverts commit 6b3cadc62a6b10c82272c024b827587dd1b4f4dd.

This reverts commit 8c193599c334280b90c612b2ad7bd9bfd6d80306.

This reverts commit 44f1f4c92a3a3208dcb7da52659174faa4937ee8, reversing

changes made to a05e09eade82cf091906f647d761aa18cc2d541d.

  1. … 7 more files in changeset.
Moved `o.g.messaging.*` to `o.g.internal.*`.

    • -3
    • +3
  1. … 295 more files in changeset.
Fix JULRedirectorTest that was locale dependent

GRADLE-2524 Allow customization of java.util.logging during tests

During test targets it is now possible to customize logging levels

and/or formatting of java.util.logging system. For example,

tasks.withType(Test) {


systemProperty 'java.util.logging.config.file', 'src/test/'



Example of `src/test/`:

handlers = java.util.logging.ConsoleHandler

.level = FINEST

.my.class.level = WARNING

java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

java.util.logging.ConsoleHandler.level = FINEST

java.util.logging.SimpleFormatter.format=[%1$tc] %4$s: [%3$s] %5$s

    • -0
    • +146
  1. … 1 more file in changeset.
Start migrating test classes to the most appropriate subproject

Story: gradle/langos#103

Item: refactor-plugins

    • -0
    • +104
    • -0
    • +116
    • -0
    • +170
    • -0
    • +156
    • -0
    • +127
    • -0
    • +81
  1. … 119 more files in changeset.