public static Description describeSpec(SpecInfo spec) {
    Description desc = Description.createSuiteDescription(spec.getReflection());

    // important for JUnit compatibility: Descriptions of specs that are reported
    // as "ignored" to JUnit must not have any children
    if (spec.isExcluded() || spec.isSkipped()) {
      return desc;
    }

    for (FeatureInfo feature : spec.getAllFeaturesInExecutionOrder()) {
      if (feature.isExcluded()) {
        continue;
      }
      desc.addChild(describeFeature(feature, spec));
    }
    return desc;
  }
Generates and attaches JUnit Description's to a SpecInfo's nodes.

@author Peter Niederwieser
spock-junit4/src/main/java/org/spockframework/junit4/JUnitDescriptionGenerator.java