Code example for TestResult

Methods: errorCountfailureCount

0
 
 
	public static void main(String args[]) {
		TestRunner runner = new TestRunner();
		TestResult result = runner.doRun(new TestSuite(DiscoveryCycleTestCase.class));
		System.exit(result.errorCount() + result.failureCount());
	} 
} 
Experience pair programming with AI  Get Codota for Java