Contract maven plugin - incremental test generation (#1361)

* Contract maven plugin - incremental test generation

* incremental stubs and stub jar generation
This commit is contained in:
Michal Domagala
2020-04-06 11:39:19 +02:00
committed by GitHub
parent 906c771c6c
commit 0a6d93a8d6
7 changed files with 194 additions and 0 deletions

View File

@@ -253,6 +253,9 @@ extends `com.example.base.BaseClass`. This setting takes precedence over
components. Those properties might be used by (for example) built-in or custom Stub Downloaders.
* `failOnNoContracts`: When enabled, will throw an exception when no contracts were found. Defaults to `true`.
* `failOnInProgress`: If set to true then if any contracts that are in progress are found, will break the build. On the producer side you need to be explicit about the fact that you have contracts in progress and take into consideration that you might be causing false positive test execution results on the consumer side.. Defaults to `true`.
* `incrementalContractTests`: When enabled, tests are created only when contracts have changed since last build. Defaults to `true`.
* `incrementalContractStubs`: When enabled, stubs are created only when contracts have changed since last build. Defaults to `true`.
* `incrementalContractStubsJar`: When enabled, stubs jar is created only when stubs have changed since last build. Defaults to `true`.
If you want to download your contract definitions from a Maven repository, you can use
the following options: