Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Directory structure of dsl groovy scripts should be used in generated specifications. Currently it is ignored. #166

@mzielinski

Description

@mzielinski

Assume that I have below configuration in build.gradle

accurest {
    basePackageForTests=test
    contractsDslDir=/home/mzielinski/stubs
}

and I have below dsl groovy scripts:

  1. ${contractsDslDir}/v1/exceptions/testv1.groovy
  2. ${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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions