public Runner safeRunnerForClass ( Class < ? > testClass ) { try { Runner runner = runnerForClass ( testClass ) ; if ( runner != null ) { configureRunner ( runner ) ; } return runner ; } catch ( Throwable e ) { return new ErrorReportingRunner ( testClass , e ) ; } }
Always returns a runner for the given test class .