Skip to content

Commit

Permalink
Merge pull request #2507 from telstra/separate_test_runner_fix
Browse files Browse the repository at this point in the history
Fix for separate functional test execution
  • Loading branch information
timofei-durakov committed Jun 14, 2019
2 parents 12d1fda + 8b219d5 commit 9e558c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ class SpringContextExtension extends AbstractGlobalExtension implements Applicat
TagExtension.collectAllTags(nonSpecialFeatures[0]).contains(Tag.HARDWARE)
specInfo.getAllFeatures().find {
it.featureMethod.getAnnotation(PrepareSpringContextDummy)
}?.excluded = !(nonSpecialFeatures[0].parameterized || isProfileDependent) ||
}?.excluded = !((nonSpecialFeatures.size() > 0 && nonSpecialFeatures[0].parameterized)|| isProfileDependent) ||
specInfo.getFeatures().every { it.excluded || it.skipped } as boolean

specInfo.allFixtureMethods*.addInterceptor(new IMethodInterceptor() {
Expand Down
Expand Up @@ -109,6 +109,8 @@ class TagExtension extends AbstractGlobalExtension {
}

static Set<Tag> collectAllTags(IterationInfo iteration) {
if (iteration == null)
return [] as Set
def feature = iteration.feature
def iterationTags = (feature.featureMethod.getAnnotation(IterationTags)?.value()?.toList() ?: [] +
feature.featureMethod.getAnnotation(IterationTag)).findAll()
Expand Down

0 comments on commit 9e558c3

Please sign in to comment.