[TEST] thrown error when there are no REST tests to run
This commit is contained in:
parent
238b26a466
commit
56f4fcb5df
|
@ -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()) {
|
if (!parseExceptions.isEmpty()) {
|
||||||
throw new InitializationError(parseExceptions);
|
throw new InitializationError(parseExceptions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue