Skip to content

Commit

Permalink
warn when no tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Coles committed Nov 3, 2021
1 parent b3e3ee1 commit a6388a7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ private static List<TestUnit> getTestsFromParent(

final List<TestUnit> tus = discoverTests(testPlugin, classes);

if (tus.isEmpty()) {
LOG.warning("No executable tests were found after examining the " + classes.size()
+ " test classes supplied. This may indicate an issue with the classpath or a missing test plugin (e.g for JUnit 5).");
}

final DependencyFilter filter = new DependencyFilter(
new DependencyExtractor(new ClassPathByteArraySource(),
paramsFromParent.getDependencyAnalysisMaxDistance()),
Expand Down

0 comments on commit a6388a7

Please sign in to comment.