TestTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix tests

  1. … 3 more files in changeset.
Fixes for previous commit.

  1. … 4 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 19 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 18 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 18 more files in changeset.
Separate out some shared behaviour from the `FileCollectionResolveContext` implementations.

Apply this shared behaviour only to those file collections that need to resolve arbitrary user provided paths, and simplify the contract for `FileCollectionResolveContext`.

  1. … 19 more files in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

  1. … 50 more files in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

  1. … 50 more files in changeset.
Merge pull request #6395 from gradle/wolfs/deprecations/classesDir

Another try at removing the classes dir.

This reverts commit 76e359df

  1. … 25 more files in changeset.
Revert "Merge pull request #6395 from gradle/wolfs/deprecations/classesDir"

Reverting since it breaks some cross version checks.

This reverts commit adaf86371e3d58d929030184bfc1c11b60ade1bf, reversing

changes made to 37df84902151344db627d6ea7c67461413ad55c9.

  1. … 25 more files in changeset.
Remove Test.testClassesDir

  1. … 6 more files in changeset.
Dogfood ImmutableFileCollection in tests (#4972)

Reduce the number of static factory methods from ImmutableFileCollection

Use layout.fileFor() in a smoke test

  1. … 32 more files in changeset.
Use GFileUtils.touch() only when we know the parent directory already exists

  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. … 41 more files in changeset.
Allow ArgumentProviders be passed as Test/JavaExec Jvm arguments (#4300)

* Allow ArgumentProviders be passed to Test Jvm arguments

* Make it possible to pass argument providers to JavaExec

  1. … 26 more files in changeset.
Wire in the TestListenerInternal → BuildOperationListener adapter solely in the service wirings.

The test task already has its hands full with the myriad listener adapters.

  1. … 5 more files in changeset.
simplify production code by moving complexity into test fixture for testing test task

  1. … 3 more files in changeset.
Move TestListenerBuildOperationAdapterTest to internal package and make it package private

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

  1. … 77 more files in changeset.
Fix CI failures

  1. … 1 more file in changeset.
Move XcTest task implementation to the AbstractTestTask

  1. … 38 more files in changeset.
Expose test and test output events as build operations

  1. … 18 more files in changeset.
Revert 'Merge pull request #2172'

To be replaced by PR #2327

  1. … 4 more files in changeset.
Adjust tests for new behavior: —-tests filters never override

gradle/gradle#1571

  1. … 2 more files in changeset.
Let --tests option override test.include and test.exclude

This fix https://github.com/gradle/gradle/issues/1571

Although it is documented that when the command line option is used, the inclusion filters declared in the build script are ignored.This feature

is not implemented actually. When --tests arguments are

set, Test's patternSet will be set to an "empty read-only set" so that

include/exclude defined in build are disabled. This fix causes an extra

problem that PatternSet.copyFrom throws a ClassCastException because it

assumes copyFrom always receives a PatternSet. Therefore,

PatternSet.copyFrom is slightly refined.

An unit test and an integration test have been provided.

  1. … 3 more files in changeset.
Use separate output directories for all JVM languages

- Introduce an outputDir on SourceDirectorySet

- Default output directory is now `build/classes/<source directory set name>/<source set name>`

- Example: Java compilation goes to build/classes/java/main instead of build/classes/main

- Adapt JDepend, FindBugs, Test and ValidateTaskProperties tasks to handle multiple class directories

- Deprecate setClassesDir/getClassesDir on SourceSetOutput

- Calling setClassesDir restores old behavior (shared output directory)

- Introduce addClassesDir and getClassesDirs on SourceSetOutput

- OSGi plugin needs a single classes directory, so introduce 'osgiClasses' task that syncs all classes to a single directory

Most of the changes to integration tests are find classes in their new location. Helper methods in AbstractIntegrationSpec

can locate class files vs hardcoding a path.

Squashed commit of sg-split-jvm-classes branch for REVIEW-6502

  1. … 119 more files in changeset.
Introduce a resource lock coordination service

- convert worker leases to resource locks

- atomically lock project and worker lease when selecting a task to execute

- change task execution plan to lock around resource lock state

  1. … 75 more files in changeset.