Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rerun test via test class executor

  1. … 6 more files in changeset.
Use ProjectBuilder.builder() instead of deprecated constructor

  1. … 2 more files in changeset.
Allow the services required by a given class to be queried prior to creating any instances of that class. Use this to allow `ArtifactTransformDependencies` to be injected into artifact transforms using any of the service injection patterns (that is, via a constructor or a getter).

  1. … 127 more files in changeset.
Remove some direct usages of `AsmBackedClassGenerator` from tests, and instead use `TestUtil` fixture to take care of setting up a decorating `Instantiator`.

  1. … 16 more files in changeset.
Fix bad merge of test class change

Fix failing tests

Signed-off-by: Felipe Lima <felipe.lima@gmail.com>

Try to execute unparseable test class files

Instead of failing the build when a test class file cannot be parsed,

e.g. if it's compiled for a JVM that is not yet supported by the

version of ASM that we use, we now assume it's a test class and pass

it to the testing framework which usually ignores classes that are not

tests.

Related issue: #7059

  1. … 6 more files in changeset.
Try to execute unparseable test class files

Instead of failing the build when a test class file cannot be parsed,

e.g. if it's compiled for a JVM that is not yet supported by the

version of ASM that we use, we now assume it's a test class and pass

it to the testing framework which usually ignores classes that are not

tests.

Related issue: #7059

  1. … 6 more files in changeset.
Report TestNG test methods below test classes

Prior to this commit, test methods were reported as siblings of their

test classes for recent versions of TestNG:

gradle test executor test descriptor

└── test Ng suite test descriptor

├── class level suite test descriptor

└── test method test descriptor

Now, test methods are reported as children of their test classes:

gradle test executor test descriptor

└── test Ng suite test descriptor

└── class level suite test descriptor

└── test method test descriptor

Resolves #6679.

  1. … 5 more files in changeset.
Adjust samples and tests with simpler useTestNG usage

  1. … 2 more files in changeset.
Fix mock call verification order

Spock 1.2 fixed a bug wrt. mock invocation order of nested invocations.

The order that's tested now is the one in which the mocks are actually

called.

  1. … 1 more file in changeset.
Dogfood JUnit Platform

  1. … 6 more files in changeset.
Exclude anonymous class in JUnit Platform (#4774) (#4815)

This fixes https://github.com/gradle/gradle/issues/4544 https://github.com/gradle/gradle/issues/4618

Previously we send anonymous class to JUnit Platform test worker, which caused some issues.

Now they're excluded by name pattern .*\$\d+

  1. … 1 more file in changeset.
Revert "Exclude anonymous class in JUnit Platform (#4774)"

This reverts commit abeb7ebb9e3cb17c826ad40caac6a54480beccad.

  1. … 3 more files in changeset.
Exclude anonymous class in JUnit Platform (#4774)

This fixes https://github.com/gradle/gradle/issues/4544 https://github.com/gradle/gradle/issues/4618

Previously we send anonymous class to JUnit Platform test worker, which caused some issues.

Now they're excluded by name pattern .*\$\d+

  1. … 3 more files in changeset.
Improves --tests pattern matching (#4597)

We improve test pattern matching in this PR. From this PR, the test pattern matching

rule are adjusted:

- If a pattern starts with an upper-case letter, it will be used to match simple class name

e.g 'TestClass.testMethod' can match 'TestClass.testMethod' under any package.

- Otherwise, it will be used to match full qualified name.

In both cases, wildcards are supported.

  1. … 12 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

  1. … 40 more files in changeset.
Correctly recognize JUnit Vintage test descriptor

This fixes https://github.com/gradle/gradle/issues/4358

If a test class has two method descriptor with same name, Vintage Engine

will name them as "testMethod(org.gradle.TestClass)[0]", which can't

be recognized. This PR updates the regular expression to recognize it.

  1. … 2 more files in changeset.
Dogfood JUnit Platform

  1. … 10 more files in changeset.
Polishing

  1. … 2 more files in changeset.
Defend against NPE when running disabled tests. (#3570)

  1. … 2 more files in changeset.
Enable test reporting for all instances of AbstractTestTask

  1. … 64 more files in changeset.
Strive to keep Gradle's monotonic clock in sync with the system clock

  1. … 70 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. … 175 more files in changeset.
Introduce BuildOperationIdFactory in global scope service for unique ids

This ensures that IDs are unique among all nested builds of

one execution.

#2622

  1. … 10 more files in changeset.
Create a test fixture for ParallelismConfigurationManager

  1. … 28 more files in changeset.
Rename ParallelExecutionManager to ParallelismConfigurationManager

  1. … 34 more files in changeset.
Add implementation for —-tests filters never override filters of script

Filters defined via command line option --tests now never override

filters defined in build scripts. To achieve that, they are handled

as a separated filter set in DefaultTestFilter and TestSelectionMatcher.

gradle/gradle#1571

  1. … 8 more files in changeset.
Merge branch 'release'

# Conflicts:

# subprojects/base-services/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationExecutorParallelExecutionTest.groovy

# subprojects/base-services/src/test/groovy/org/gradle/internal/operations/MaxWorkersTest.groovy

# subprojects/core/src/main/java/org/gradle/internal/progress/DefaultBuildOperationExecutor.java

# subprojects/core/src/main/java/org/gradle/internal/service/scopes/BuildSessionScopeServices.java

# subprojects/core/src/main/java/org/gradle/testfixtures/internal/TestGlobalScopeServices.java

# subprojects/core/src/test/groovy/org/gradle/internal/progress/DefaultBuildOperationExecutorTest.groovy

# subprojects/docs/src/docs/release/notes.md

# subprojects/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/NativeCompilerTest.groovy

# subprojects/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/report/DefaultTestReportTest.groovy

# subprojects/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/Binary2JUnitXmlReportGeneratorSpec.groovy

  1. … 9 more files in changeset.