ModelDslIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Software Model @UnsupportedWithInstantExecution

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

  1. … 76 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

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

  1. … 77 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

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

  1. … 77 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

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

  1. … 77 more files in changeset.
Replaced a bunch of usages of `$('p')` with `$.p`

  1. … 32 more files in changeset.
Don't need to mess with line separators in this test.

Added some test coverage to verify that nested rule DSL closures cannot see the delegate of outer closures.

  1. … 2 more files in changeset.
Fixed DSL rule extraction when a closure that looks like a nested DSL rule is nested inside a closure that is not.

  1. … 4 more files in changeset.
Changed the descriptor for DSL rules so that it more closely matches the expression used in the code to reference the subject.

This change also detangles the subject path from the DSL rule descriptor, so that they can be different.

  1. … 25 more files in changeset.
Changed rule DSL transformation to distinguish between those input references in the body of a rule closure, and those inside a closure that is a potential nested rule.

This is not used yet. Separating these will allow input references to appear in nested rule closures without being treated as inputs of the outer rule closure.

  1. … 5 more files in changeset.
Minor test rename.

Remove test fixture that enables transformed model rules DSL. Not required any more.

  1. … 43 more files in changeset.
Removed speculative conversion of property references in DSL rules closures into input references. Can now only use $('p') expressions to refer to other rule elements as inputs.

    • -22
    • +22
    ./ModelDslIntegrationTest.groovy
  1. … 12 more files in changeset.
Treat dynamic property references at the top level of a rule closure in the DSL as an input reference.

  1. … 12 more files in changeset.
Apply @Defaults rules before the closure provided to a creator rule in the transformed DSL. Added some test coverage.

    • -16
    • +44
    ./ModelDslIntegrationTest.groovy
  1. … 2 more files in changeset.
Remove some obsolete imports in integration tests.

+review REVIEW-5491

  1. … 41 more files in changeset.
Allow top level, managed, elements to be added to the model graph.

Example:

model {

thing(Thing) {

}

}

Works for both styles of model blocks.

+review

  1. … 27 more files in changeset.
Change rule source marking from annotation to base class

+review REVIEW-5359

  1. … 73 more files in changeset.
PolymorphicDomainObjectContainer<T> instances bridged into the model are now viewed as a CollectionBuilder<T> instance from the model DSL.

- Added CollectionBuilder.named(name, action) to apply configuration to a particular element.

- Provide roughly equivalent DSL for creating and configuring elements.

    • -10
    • +18
    ./ModelDslIntegrationTest.groovy
  1. … 13 more files in changeset.
Don't implement Plugin in rule sources used in tests if it's not necessary

+review REVIEW-5239

    • -26
    • +11
    ./ModelDslIntegrationTest.groovy
  1. … 7 more files in changeset.
Introduce a feature toggle for the new model DSL, off by default.

  1. … 7 more files in changeset.
Test coverage for using something that is not a closure literal to define rules using DSL

+review REVIEW-5177

  1. … 2 more files in changeset.
Add explicit coverage of use of model {} block in script plugin with input extraction.

+review REVIEW-5177

Add explicit test for supporting duplicate input definitions in DSL rule.

+review REVIEW-5177

Add explicit test for inputs being finalised when used in dsl rules.

+review REVIEW-5177

  1. … 1 more file in changeset.
Revert "Revert "Expansion/improvement of compile time transforming for model rules in the DSL.""

This reverts commit 1a9872da557fc63a2af73abc4447cb28d96a4d4d.

Problems with original implementation have been fixed.

  1. … 18 more files in changeset.
Revert "Expansion/improvement of compile time transforming for model rules in the DSL."

This reverts commit b6a2261e3ea52f22e34ca07b3e8493febe21d669.

Need to deal with the unit tests that are using the model DSL, which is no longer feasible because it relies on transforms.

  1. … 18 more files in changeset.
Expansion/improvement of compile time transforming for model rules in the DSL.

+review REVIEW-5177

    • -0
    • +72
    ./ModelDslIntegrationTest.groovy
  1. … 18 more files in changeset.