int (String[] args, String name, int count, boolean sendTree) { setPrinter(new MockResultPrinter()); try { Test suite = TestRunnerUtil.getTestSuite(this, args); if (suite == null) return -1; return doRun(suite).wasSuccessful() ? 0 : -1; } catch (Exception e) { e.printStackTrace(System.err); return -2; } }