Fork me on GitHub

spring-cloud-contract:generateTests

Full name:

org.springframework.cloud:spring-cloud-contract-maven-plugin:1.0.0.BUILD-SNAPSHOT:generateTests

Description:

(no description)

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: generate-test-sources.

Optional Parameters

Name Type Since Description
baseClassForTests String - (no description)
basePackageForTests String - (no description)
Default value is: org.springframework.cloud.contract.verifier.tests.
contractsDirectory File - (no description)
Default value is: ${project.basedir}/src/test/resources/contracts.
User property is: spring.cloud.contract.verifier.contractsDirectory.
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)
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.

Parameter Details

baseClassForTests:

(no description)
  • Type: java.lang.String
  • Required: No

basePackageForTests:

(no description)
  • Type: java.lang.String
  • Required: No
  • Default: org.springframework.cloud.contract.verifier.tests

contractsDirectory:

(no description)
  • Type: java.io.File
  • Required: No
  • User Property: spring.cloud.contract.verifier.contractsDirectory
  • Default: ${project.basedir}/src/test/resources/contracts

excludedFiles:

Patterns that should not be taken into account for processing
  • Type: java.util.List
  • Required: No

generatedTestSourcesDir:

(no description)
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/generated-test-sources/contracts

ignoredFiles:

Patterns for which Spring Cloud Contract Verifier should generate @Ignored tests
  • Type: java.util.List
  • Required: No

imports:

Imports that should be added to generated tests
  • Type: java.lang.String[]
  • Required: No

mavenTestSkip:

(no description)
  • Type: boolean
  • Required: No
  • User Property: maven.test.skip
  • Default: false

nameSuffixForTests:

(no description)
  • Type: java.lang.String
  • Required: No

ruleClassForTests:

(no description)
  • Type: java.lang.String
  • Required: No

skip:

(no description)
  • Type: boolean
  • Required: No
  • User Property: spring.cloud.contract.verifier.skip
  • Default: false

skipTests:

(no description)
  • Type: boolean
  • Required: No
  • User Property: skipTests
  • Default: false

staticImports:

Static imports that should be added to generated tests
  • Type: java.lang.String[]
  • Required: No

testFramework:

(no description)
  • Type: org.springframework.cloud.contract.verifier.config.TestFramework
  • Required: No
  • Default: JUNIT

testMode:

(no description)
  • Type: org.springframework.cloud.contract.verifier.config.TestMode
  • Required: No
  • Default: MOCKMVC