Plugins are generating tests for all contracts when using external contracts

When using contract plugins together with a shared repo with contracts we end up with creating contract tests for all the contracts. Stubs are created properly but tests generation ignores the path pattern.
With this change we fix the way tests are generated

fixes #155
This commit is contained in:
Marcin Grzejszczak
2016-11-23 17:43:25 +01:00
parent 72e165e4ae
commit c2a1efa9dc
6 changed files with 14 additions and 7 deletions

View File

@@ -58,7 +58,8 @@ class TestGenerator {
this.saver = saver
contractFileScanner = new ContractFileScanner(configProperties.contractsDslDir,
configProperties.excludedFiles as Set,
configProperties.ignoredFiles as Set)
configProperties.ignoredFiles as Set,
this.configProperties.includedContracts)
}
int generate() {