ExecIntegrationTest.groovy

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

Coverage for task injected ExecOperations service and task action usage

Signed-off-by: Paul Merlin <paul@gradle.com>

Coverage for task injected ExecOperations service and task action usage

Signed-off-by: Paul Merlin <paul@gradle.com>

Change more tests.

  1. … 40 more files in changeset.
Change more tests.

  1. … 20 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

  1. … 98 more files in changeset.
Add argumentProviders for Exec task

  1. … 8 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.
Polish ExecIntegrationSpec even more

GRADLE-3528

+review REVIEW-6191

Modernize ExecIntegrationSpec

GRADLE-3528

+review REVIEW-6191

  1. … 2 more files in changeset.
Ignore environment as input for Exec task

On Mac OS there are some environment variables which

change from build to build. This would mean that the

Exec task would never be up to date on Mac OS. Given

that even on Unix environment variables would change

we need some deeper modeling of this fact - only

adding `@Input` to `getEnvironment()` does not

model the inputs correctly.

The existing tests do not capture that problem because

we do not run them on Mac OS in CI. The problems only

are visible when the tests are run in `forking` mode.

To restore the old behaviour `@Input` has been removed

on `getEnvironment()`.

GRADLE-3528 #resolve

+review REVIEW

  1. … 5 more files in changeset.
Convert ExecIntegrationTest to Spock

Remove RuleHelper.

Use constructor injection instead of reflection.

  1. … 88 more files in changeset.
- Shuffled some classes around in o.g.integtests.fixtures to remove package cycle. - Switched on package cycle checking for a few more projects. - Switched off class cycle checking, just do packages for now.

  1. … 115 more files in changeset.
After merging idea & eclipse subproject I moved integTests accordingly. This refactoring makes it much easier to run only the ide-specific tests if one changes only eclipse/idea plugin. Needed to move one common base class to core fixtures.

  1. … 196 more files in changeset.
GRADLE-1355 - Move integration tests out of core project and into their own integTest project.

    • -0
    • +41
    ./ExecIntegrationTest.groovy
  1. … 668 more files in changeset.