Example #1
0
  Summary compileSummary(Collection<Pool> pools, List<TestClass> testClasses) {
    Summary.Builder summaryBuilder = aSummary();
    for (Pool pool : pools) {
      PoolSummary poolSummary = compilePoolSummary(pool);
      summaryBuilder.addPoolSummary(poolSummary);
    }
    addIgnoredTests(testClasses, summaryBuilder);
    summaryBuilder.withTitle(runtimeConfiguration.getTitle());
    summaryBuilder.withSubtitle(runtimeConfiguration.getSubtitle());

    return summaryBuilder.build();
  }
Example #2
0
 private void addIgnoredTests(List<TestClass> testClasses, Summary.Builder summaryBuilder) {
   for (TestClass testClass : testClasses) {
     for (TestMethod ignoredMethod : testClass.getIgnoredMethods()) {
       summaryBuilder.addIgnoredTest(testClass.getName() + ":" + ignoredMethod);
     }
   }
 }