Assume that I have below configuration in build.gradle
accurest {
basePackageForTests=test
contractsDslDir=/home/mzielinski/stubs
}
and I have below dsl groovy scripts:
- ${contractsDslDir}/v1/exceptions/testv1.groovy
- ${contractsDslDir}/v2/exceptions/testv2.groovy
After generation, as a result I would like to have two specifications. In this example each should have exactly one test:
package test.v1
class ExceptionsSpec {
def testv1() {
// some code
}
}
package test.v2
class ExceptionsSpec {
def testv2() {
// some code
}
}
but currently I got only one specification:
package test
class ExceptionsSpec {
def testv2() {
// some code
}
}
which contain only one test testv2(). Test testv1() was overwritten.
From my point of view this is a bug because some test are not generated.