[TEST] thrown error when there are no REST tests to run

This commit is contained in:
Luca Cavanna 2014-02-04 13:05:18 +01:00
parent 238b26a466
commit 56f4fcb5df
1 changed files with 4 additions and 0 deletions

View File

@ -336,6 +336,10 @@ public class RestTestSuiteRunner extends ParentRunner<RestTestCandidate> {
}
}
if (rootDescription.getChildren().size() == 0) {
throw new InitializationError("No tests to run");
}
if (!parseExceptions.isEmpty()) {
throw new InitializationError(parseExceptions);
}