Skip to content

Commit

Permalink
[TEST] thrown error when there are no REST tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed Feb 4, 2014
1 parent 238b26a commit 56f4fcb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ protected List<RestTestCandidate> collectTestCandidates(Description rootDescript
}
}

if (rootDescription.getChildren().size() == 0) {
throw new InitializationError("No tests to run");
}

if (!parseExceptions.isEmpty()) {
throw new InitializationError(parseExceptions);
}
Expand Down

0 comments on commit 56f4fcb

Please sign in to comment.