Full name:
org.springframework.cloud:spring-cloud-contract-maven-plugin:2.0.0.RELEASE:generateTests
Description:
Attributes:
Name | Type | Since | Description |
---|---|---|---|
assertJsonSize | boolean | - | Incubating feature. You can check the size of JSON arrays. If not
turned on explicitly will be disabled. Default value is: false. User property is: spring.cloud.contract.verifier.assert.size. |
baseClassForTests | String | - | (no description) |
baseClassMappings | List | - | A way to override any base class mappings. The keys are regular
expressions on the package name of the contract and the values FQN
to a base class for that given expression. Example of a mapping .*.com.example.v1..* -> com.example.SomeBaseClass When a contract's package matches the provided regular expression then extending class will be the one provided in the map - in this case com.example.SomeBaseClass User property is: baseClassMappings. |
basePackageForTests | String | - | (no description) |
contractDependency | Dependency | - | (no description) User property is: contractDependency. |
contractsDirectory | File | - | (no description) Default value is: ${project.basedir}/src/test/resources/contracts. User property is: spring.cloud.contract.verifier.contractsDirectory. |
contractsMode | StubRunnerProperties$StubsMode | - | Picks the mode in which stubs will be found and registered Default value is: CLASSPATH. User property is: contractsMode. |
contractsPath | String | - | The path in the JAR with all the contracts where contracts for this
particular service lay. If not provided will be resolved to
groupid/artifactid. Example: If groupid is com.example and artifactid is service then the resolved path will be /com/example/artifactid User property is: contractsPath. |
contractsProperties | Map | - | Map of properties that can be passed to custom
StubDownloaderBuilder User property is: contractsProperties. |
contractsRepositoryPassword | String | - | The password to be used to connect to the repo with contracts. User property is: contractsRepositoryPassword. |
contractsRepositoryProxyHost | String | - | The proxy host to be used to connect to the repo with contracts. User property is: contractsRepositoryProxyHost. |
contractsRepositoryProxyPort | Integer | - | The proxy port to be used to connect to the repo with contracts. User property is: contractsRepositoryProxyPort. |
contractsRepositoryUrl | String | - | The URL from which a contracts should get downloaded. If not
provided but artifactid / coordinates notation was provided then
the current Maven's build repositories will be taken into
consideration User property is: contractsRepositoryUrl. |
contractsRepositoryUsername | String | - | The user name to be used to connect to the repo with contracts. User property is: contractsRepositoryUsername. |
contractsSnapshotCheckSkip | boolean | - | If true then will not assert whether a stub / contract
JAR was downloaded from local or remote location Default value is: false. User property is: contractsSnapshotCheckSkip. |
deleteStubsAfterTest | boolean | - | If set to false will NOT delete stubs from a temporary
folder after running tests Default value is: true. User property is: deleteStubsAfterTest. |
excludedFiles | List | - | Patterns that should not be taken into account for processing |
generatedTestSourcesDir | File | - | (no description) Default value is: ${project.build.directory}/generated-test-sources/contracts. |
ignoredFiles | List | - | Patterns for which Spring Cloud Contract Verifier should generate
@Ignored tests |
imports | String[] | - | Imports that should be added to generated tests |
mavenTestSkip | boolean | - | (no description) Default value is: false. User property is: maven.test.skip. |
nameSuffixForTests | String | - | (no description) |
packageWithBaseClasses | String | - | A package that contains all the base clases for generated tests. If
your contract resides in a location
src/test/resources/contracts/com/example/v1/ and you
provide the packageWithBaseClasses value to
com.example.contracts.base then we will search for a
test source file that will have the package
com.example.contracts.base and name
ExampleV1Base. As you can see it will take the two
last folders to and attach Base to its name. User property is: packageWithBaseClasses. |
ruleClassForTests | String | - | (no description) |
skip | boolean | - | (no description) Default value is: false. User property is: spring.cloud.contract.verifier.skip. |
skipTests | boolean | - | (no description) Default value is: false. User property is: skipTests. |
staticImports | String[] | - | Static imports that should be added to generated tests |
testFramework | TestFramework | - | (no description) Default value is: JUNIT. |
testMode | TestMode | - | (no description) Default value is: MOCKMVC. |
skip: