integ-test.gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Convert `integ-test` build script to Kotlin

  1. … 2 more files in changeset.
Do not expose SLF4J Simple from sample-check

  1. … 1 more file in changeset.
Upgrade Spock to Groovy 2.5-compatible variant

  1. … 4 more files in changeset.
Add samples as input to integration tests only

All the other tests are do not use the samples as an input.

Integration tests can use the `Sample` rule to copy some

samples into the test workspace.

  1. … 6 more files in changeset.
Add samples as an input to `integTest:integTest`

Given that the user guide samples will be tested there.

  1. … 1 more file in changeset.
Converted many Groovy script to Kotlin and improved the Kotlin DSL usage in some existing Kotlin scripts.

  1. … 95 more files in changeset.
Improve laziness of gradlebuild by using build scans

  1. … 16 more files in changeset.
Externalize samples testing infrastructure

This change replaces UserGuideSamplesRunner with an external library

called sample-check. Sample discovery, execution, and normalization

is delegated to this library, with some custom normalizers remaining

in the Gradle codebase.

Samples output has become co-located with the sample code. Samples tests

must be run with Java 8+.

  1. … 782 more files in changeset.
Use configureEach over configureEachLater

configureEachLater is going to be removed.

  1. … 12 more files in changeset.
Move cleanup plugin into cleanup subproject

- Add integration test using TestKit

- Rewrite EmptyDirectoryCheck to use Provider API

  1. … 26 more files in changeset.
Make some more shit lazy

  1. … 5 more files in changeset.
Make a bunch of shit lazy

  1. … 14 more files in changeset.
Merge testing and integration-testing

  1. … 30 more files in changeset.
Introduced the property moduleType to derive source compatibility settings

  1. … 80 more files in changeset.
Merge branch 'master' into hansd/integrationTesting

- Fixed merged conflicts due to reorg of buildSrc and removal of extra properties

  1. … 3 more files in changeset.
Extracted test file cleanup from root build into plugin

- Moved configuration of test file clean into extension

- Added TestFileCleanUpPlugin

- Moved CiReporting and Classycle plugin into codequality module

  1. … 23 more files in changeset.
Added gradlebuild namespace to plugins and more modularization in buildSrc

- Added to all plugins in buildSrc "gradlebuild." to their id

- Shortened plugin names

- Added ide and docs as additional modules

- Applied java-library plugin to Kotlin projects to model dependencies

  1. … 86 more files in changeset.
Deduplicated integration testing logic and moved it to Kotlin

- Extracted common logic between integration testing and cross version testing.

- Simplified test exclude logic

- Removed unnecessary extra properties

- Unified wrongly divergent configuration between integration testing and cross version testing

- Made configuration consistent for the system properties of all integration test tasks

- Removed unnecessary global (withType) configuration logic.

  1. … 12 more files in changeset.
Keep properties close to Provider classes

  1. … 8 more files in changeset.
Use jvmArgumentProviders in the Gradle build

  1. … 5 more files in changeset.
"coordinate" -> "coordinates"

  1. … 60 more files in changeset.
Move dependency constraints into a separate project

  1. … 69 more files in changeset.
Revert "quick fix gradle idea runner configurations for running gradle from idea"

This reverts commit f4abf61a4491447dbbc1011d26590bec34d8e685.

quick fix gradle idea runner configurations for running gradle from idea

- issue seems related to changes in gradle build

- reaching out to @eskatos

Extract allTestRuntimeDependencies and reuse

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

  1. … 4 more files in changeset.
Extract idiomatic test-fixtures plugin to buildSrc

Plugin is applied to all "groovy projects", see `groovyProject.gradle`.

The plugin configures the Project as a test fixtures producer if

`src/testFixtures` is a directory.

The plugin configures the Project as a test fixtures consumer according

to the `testFixtures` extension configuration.

No more Groovy Closure with optional parameters as a Project extra

property.

Test-fixtures configuration rely on a Groovy DSL only feature that

allows to pass a collection of dependency notations when declaring

dependencies. The Kotlin DSL lacks this feature, see

https://github.com/gradle/kotlin-dsl/issues/639

A workaround has been put in place in `build-extensions.kt` in order to

move forward until this is properly fixed in the Kotlin DSL.

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

  1. … 70 more files in changeset.
Make the Classycle configuration more idiomatic

by replacing the configuration function useClassycle() as extra project

property with a plugins {} block plugin request and a project extension.

The classycle extension has two properties, one for the excludes defined

per project, the other one to reference the report resources zip.

This change will make configuring classycle from Kotlin DSL scripts

nicer.

Introduce kotlin-dsl-upstream.kt in buildSrc org.gradle.kotlin.dsl

package for members missing from the Gradle Kotlin DSL intended to be

pulled upstream into the next Gradle Kotlin DSL release.

A sole extension added: reified ObjectFactory.listProperty()

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

  1. … 54 more files in changeset.
Add external modules to integration/crossVersion test runtime classpath

Otherwise gradl-kotlin-dsl is not available during embedded execution.

  1. … 1 more file in changeset.
Fix :integTest integTest & crossVersionTest dependencies

Remove leftover file from test

This ensures we are not polluting the inputs of the

integration test task.

+review REVIEW-6402

  1. … 1 more file in changeset.