final List<PerFeatureRunner> runners = new ArrayList<>();
final List<Feature> featureList = features.getFeature();
for (final Feature f : featureList) {
- runners.add(new PerFeatureRunner(repoUrl, f.getName(), f.getVersion(), testClass));
+ // If the features have more than one feature, ignore any feature with the same name as the
+ // repository — these are the aggregator features generated by the Karaf Maven plugin, and
+ // which are expensive to test
+ if (featureList.size() == 1 || !f.getName().equals(features.getName())) {
+ runners.add(new PerFeatureRunner(repoUrl, f.getName(), f.getVersion(), testClass));
+ } else {
+ LOG.warn("Skipping {}, it's an aggregator feature", f.getName());
+ }
}
return runners;
}