@ Subscribe @ SuppressForbidden ( "legitimate printStackTrace()." ) public void onSuiteResult ( AggregatedSuiteResultEvent e ) { try { if ( jsonWriter == null ) return ; slaves . put ( e . getSlave ( ) . id , e . getSlave ( ) ) ; e . serialize ( jsonWriter , outputStreams ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; junit4 . log ( "Error serializing to JSON file: " + Throwables . getStackTraceAsString ( ex ) , Project . MSG_WARN ) ; if ( jsonWriter != null ) { try { jsonWriter . close ( ) ; } catch ( Throwable ignored ) { // Ignore. } finally { jsonWriter = null ; } } } }
Emit information about a single suite and all of its tests .