InitScriptExecutionIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Moved some int tests to live in the core project.

    • -158
    • +0
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 7 more files in changeset.
Changed int tests so that they don't use removed internal property.

    • -1
    • +0
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 4 more files in changeset.
Change getGradleUserHomeDir() to return TestFile.

    • -14
    • +10
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 5 more files in changeset.
Introduce IntegrationTestBuildContext, that provides values for certain configuration required for test execution (e.g. gradle user home dir).

This used to be done by GradleDistribution.

    • -6
    • +10
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 43 more files in changeset.
Some renaming and cleanup around the test/temp directory used in tests.

    • -1
    • +1
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 308 more files in changeset.
Moved code related to GradleExecuter and GradleDistribution into org.gradle.integtests.fixtures.executer - Affects many, many files, but mostly just imports - Certain files (eg RuleHelper) are not in the correct spot, but were moved to avoid cycles

    • -2
    • +2
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 170 more files in changeset.
Use execution result object to assert tasks executed in integ test: this allows parallel executer to allow non-strict ordering

    • -1
    • +1
    ./InitScriptExecutionIntegrationTest.groovy
Improved the test infrastructure WRT logging:

1. daemon integ tests now run with info level unless the log level was expliciltly configured.

2. fixed various tests so that they work if they are ran with info level (should also work with debug). This involved:

- tweaking the output scraping logic to correctly find executed tasks (previous behavior was finding redundant tasks when --info/--debug used), and to correctly find skipped tasks (previous behavior only worked if ran with 'lifecycle' level).

- tightening the deprecation finding assertion. Previous behaviour only matched 'deprecated' string which was eagerly matched against things like 'sonar-deprecated.jar' or 'deprecated-list.html', etc. I changed the string to ' deprecated' because it seems majority of our deprecation warnings will fall into that (e.g. 'is deprecated', 'has been deprecated', etc.). It's a simple tweak but should give enough confidence and makes many tests runnable with --info.

    • -8
    • +8
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 12 more files in changeset.
Reverted changes to the daemon logging / test infrastructure until the build is stable.

    • -8
    • +8
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 12 more files in changeset.
Improved the test infrastructure WRT logging:

1. daemon integ tests now run with info level unless the log level was expliciltly configured.

2. fixed various tests so that they work if they are ran with info level (should also work with debug). This involved:

- tweaking the output scraping logic to correctly find executed tasks (previous behavior was finding redundant tasks when --info/--debug used), and to correctly find skipped tasks (previous behavior only worked if ran with 'lifecycle' level).

- tightening the deprecation finding assertion. Previous behaviour only matched 'deprecated' string which was eagerly matched against things like 'sonar-deprecated.jar' or 'deprecated-list.html', etc. I changed the string to ' deprecated' because it seems majority of our deprecation warnings will fall into that (e.g. 'is deprecated', 'has been deprecated', etc.). It's a simple tweak but should give enough confidence and makes many tests runnable with --info.

    • -9
    • +9
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 9 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
    • +1
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 115 more files in changeset.
Added Gradle.rootProject { } and allprojects {}, to simplify injecting configuration into the root and/or all projects of the build.

    • -1
    • +23
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 4 more files in changeset.
Look for init scripts in ~/.gradle/init.d/

    • -2
    • +22
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 7 more files in changeset.
Some init script int test coverage.

    • -21
    • +43
    ./InitScriptExecutionIntegrationTest.groovy
Revert "GRADLE-1457: Init script passed from command line are not executed for buildSrc project"

This reverts commit db4dde981a469a281957142f53654690486d108f.

Apparently there're some more fixes that need to be accomodated to make it working. Reverted for now.

    • -28
    • +0
    ./InitScriptExecutionIntegrationTest.groovy
Flipped the dependency between coreImpl and the plugins, so that any plugin project can use the classes of coreImpl. Added a filter so that only org.gradle.* is exported from coreImpl.

    • -1
    • +0
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 4 more files in changeset.
Added a filter between the plugins ClassLoader, and the build ClassLoader, which prevents scripts and external plugins from seeing anything except org.gradle.*, ant, groovy, ivy, slf4j, log4j and jcl.

    • -4
    • +12
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 17 more files in changeset.
GRADLE-1457: Init script passed from command line are not executed for buildSrc project Added a test method for it

    • -0
    • +28
    ./InitScriptExecutionIntegrationTest.groovy
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.

    • -0
    • +1
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 196 more files in changeset.
GRADLE-1355 - Move integration tests out of core project and into their own integTest project.

    • -0
    • +87
    ./InitScriptExecutionIntegrationTest.groovy
  1. … 668 more files in changeset.