* If one or more tests have failed, a JuRuntimeException is thrown. Additionally, we'll log
* the exception stack traces and add the first exception as a cause to the runtime exception.
* @param clazz Class containing tests
*/
public static Result runJUnitTests(Class<?> clazz) {
Computer computer = new Computer();
Result res = new JUnitCore().run(computer, clazz);
if (res.getFailureCount() > 0) {
XString xs = new XString("Unit tests failed. Failure count: " + res.getFailureCount());
for (Failure f : res.getFailures()) {