@Test public void compilesSummaryWithIgnoredTests() { AggregatedTestResult aggregatedTestResult = aggregatedTestResult() .withIgnoredTests(singletonList(ignoredTest)) .build(); Summary summary = summaryCompiler.compileSummary(aggregatedTestResult); assertThat(summary.getIgnoredTests(), hasSize(1)); assertThat(summary.getIgnoredTests(), contains("com.example.IgnoredClassTest#doesJobProperly")); }
@Nonnull Summary compileSummary(@Nonnull AggregatedTestResult aggregatedTestResult) { Summary.Builder summaryBuilder = aSummary(); for (PoolTestResult poolTestResult : aggregatedTestResult.getPoolTestResults()) { List<TestResult> testResults = poolTestResult.getTestResults(); PoolSummary poolSummary = aPoolSummary() .withPoolName(poolTestResult.getPool().getName()) .addTestResults(testResults) .build(); summaryBuilder.addPoolSummary(poolSummary); addFailedTests(testResults, summaryBuilder); } addIgnoredTests(aggregatedTestResult.getIgnoredTests(), summaryBuilder); addFatalCrashedTests(aggregatedTestResult.getFatalCrashedTests(), summaryBuilder); summaryBuilder.withTitle(configuration.getTitle()); summaryBuilder.withSubtitle(configuration.getSubtitle()); return summaryBuilder.build(); }
SummaryCompiler { @Nonnull Summary compileSummary(@Nonnull AggregatedTestResult aggregatedTestResult) { Summary.Builder summaryBuilder = aSummary(); for (PoolTestResult poolTestResult : aggregatedTestResult.getPoolTestResults()) { List<TestResult> testResults = poolTestResult.getTestResults(); PoolSummary poolSummary = aPoolSummary() .withPoolName(poolTestResult.getPool().getName()) .addTestResults(testResults) .build(); summaryBuilder.addPoolSummary(poolSummary); addFailedTests(testResults, summaryBuilder); } addIgnoredTests(aggregatedTestResult.getIgnoredTests(), summaryBuilder); addFatalCrashedTests(aggregatedTestResult.getFatalCrashedTests(), summaryBuilder); summaryBuilder.withTitle(configuration.getTitle()); summaryBuilder.withSubtitle(configuration.getSubtitle()); return summaryBuilder.build(); } }
SummaryCompiler { @Nonnull Summary compileSummary(@Nonnull AggregatedTestResult aggregatedTestResult) { Summary.Builder summaryBuilder = aSummary(); for (PoolTestResult poolTestResult : aggregatedTestResult.getPoolTestResults()) { List<TestResult> testResults = poolTestResult.getTestResults(); PoolSummary poolSummary = aPoolSummary() .withPoolName(poolTestResult.getPool().getName()) .addTestResults(testResults) .build(); summaryBuilder.addPoolSummary(poolSummary); addFailedTests(testResults, summaryBuilder); } addIgnoredTests(aggregatedTestResult.getIgnoredTests(), summaryBuilder); addFatalCrashedTests(aggregatedTestResult.getFatalCrashedTests(), summaryBuilder); summaryBuilder.withTitle(configuration.getTitle()); summaryBuilder.withSubtitle(configuration.getSubtitle()); return summaryBuilder.build(); } SummaryCompiler(ForkConfiguration configuration); }
SummaryCompiler { @Nonnull Summary compileSummary(@Nonnull AggregatedTestResult aggregatedTestResult) { Summary.Builder summaryBuilder = aSummary(); for (PoolTestResult poolTestResult : aggregatedTestResult.getPoolTestResults()) { List<TestResult> testResults = poolTestResult.getTestResults(); PoolSummary poolSummary = aPoolSummary() .withPoolName(poolTestResult.getPool().getName()) .addTestResults(testResults) .build(); summaryBuilder.addPoolSummary(poolSummary); addFailedTests(testResults, summaryBuilder); } addIgnoredTests(aggregatedTestResult.getIgnoredTests(), summaryBuilder); addFatalCrashedTests(aggregatedTestResult.getFatalCrashedTests(), summaryBuilder); summaryBuilder.withTitle(configuration.getTitle()); summaryBuilder.withSubtitle(configuration.getSubtitle()); return summaryBuilder.build(); } SummaryCompiler(ForkConfiguration configuration);  }
SummaryCompiler { @Nonnull Summary compileSummary(@Nonnull AggregatedTestResult aggregatedTestResult) { Summary.Builder summaryBuilder = aSummary(); for (PoolTestResult poolTestResult : aggregatedTestResult.getPoolTestResults()) { List<TestResult> testResults = poolTestResult.getTestResults(); PoolSummary poolSummary = aPoolSummary() .withPoolName(poolTestResult.getPool().getName()) .addTestResults(testResults) .build(); summaryBuilder.addPoolSummary(poolSummary); addFailedTests(testResults, summaryBuilder); } addIgnoredTests(aggregatedTestResult.getIgnoredTests(), summaryBuilder); addFatalCrashedTests(aggregatedTestResult.getFatalCrashedTests(), summaryBuilder); summaryBuilder.withTitle(configuration.getTitle()); summaryBuilder.withSubtitle(configuration.getSubtitle()); return summaryBuilder.build(); } SummaryCompiler(ForkConfiguration configuration);   }