markHandled(baseRequest, response, HttpServletResponse.SC_NOT_FOUND, "text/plain");
response.getWriter().println("Could not find class with name or reference to " + target.substring(1));
return;
}
HegemonRunner runner = new HegemonRunner(c, baseRequest.getQueryString(), this.loadPath);
RunNotifier notifier = new RunNotifier();
notifier.addListener(new ResponseListener(response, createCustomTestOutputHandler()));
startTestClass();
long start = System.currentTimeMillis();
response.setContentType("text/html;charset=utf-8");
response.getWriter().print(
"<style>.ok {color:green} .fail {color:red} .ignore {color:orange} pre {margin-left: 24px}</style>");
runner.run(notifier);
response.setStatus(HttpServletResponse.SC_OK);
response.getWriter().println("<br>Finished in " + ((System.currentTimeMillis() - start) / 1000.0) + " seconds.");
baseRequest.setHandled(true);