Use standard directory for generated test source code
This commit is contained in:
@@ -46,7 +46,7 @@ class AccurestGradlePlugin implements Plugin<Project> {
|
||||
|
||||
void setConfigurationDefaults(AccurestConfigProperties extension) {
|
||||
extension.with {
|
||||
generatedTestSourcesDir = project.file("${project.buildDir}/generated-sources/accurest")
|
||||
generatedTestSourcesDir = project.file("${project.buildDir}/generated-test-sources/accurest")
|
||||
contractsDslDir = project.file("${project.rootDir}/src/test/resources/stubs") //TODO: Use sourceset
|
||||
basePackageForTests = 'io.codearte.accurest.tests'
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import spock.lang.Stepwise
|
||||
@Stepwise
|
||||
class BasicFunctionalSpec extends IntegrationSpec {
|
||||
|
||||
private static final String GENERATED_TEST = "build//generated-sources//accurest//accurest//twitter_places_analyzer//PairIdSpec.groovy"
|
||||
private static final String GENERATED_TEST = "build//generated-test-sources//accurest//accurest//twitter_places_analyzer//PairIdSpec.groovy"
|
||||
private static final String GENERATED_CLIENT_JSON_STUB = "build//production//bootSimple-stubs//repository//mappings//twitter-places-analyzer//pairId//collerate_PlacesFrom_Tweet.json"
|
||||
private static final String GROOVY_DSL_CONTRACT = "repository//mappings//com//ofg//twitter-places-analyzer//pairId//collerate_PlacesFrom_Tweet.groovy"
|
||||
private static final String TEST_EXECUTION_XML_REPORT = "build/test-results/TEST-accurest.twitter_places_analyzer.PairIdSpec.xml"
|
||||
|
||||
@@ -46,7 +46,7 @@ configure([project(':fraudDetectionService'), project(':loanApplicationService')
|
||||
testMode = 'JaxRsClient'
|
||||
baseClassForTests = 'com.blogspot.toomuchcoding.MvcSpec'
|
||||
contractsDslDir = file("${project.projectDir.absolutePath}/mappings/")
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-sources/")
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-test-sources/")
|
||||
stubsOutputDir = wireMockStubsOutputDir
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ configure([project(':fraudDetectionService'), project(':loanApplicationService')
|
||||
testMode = 'MockMvc'
|
||||
baseClassForTests = 'com.blogspot.toomuchcoding.MvcSpec'
|
||||
contractsDslDir = file("${project.projectDir.absolutePath}/mappings/")
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-sources/")
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-test-sources/")
|
||||
stubsOutputDir = wireMockStubsOutputDir
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ configure([project(':fraudDetectionService'), project(':loanApplicationService')
|
||||
testMode = 'MockMvc'
|
||||
baseClassForTests = 'com.blogspot.toomuchcoding.MvcSpec'
|
||||
contractsDslDir = file("${project.projectDir.absolutePath}/mappings/")
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-sources/")
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-test-sources/")
|
||||
stubsOutputDir = wireMockStubsOutputDir
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user