public String toLog() {
StringBuffer strBuff = new StringBuffer();
if (metadataRunTestsResult.getNumFailures() > 0) {
strBuff.append("\n\nRun Failures:");
for (int i = 0; i < metadataRunTestsResult.getFailures().length; i++) {
RunTestFailure failure = metadataRunTestsResult.getFailures()[i];
if (Utils.isNotEmpty(failure.getNamespace())) {
strBuff.append("\n " + failure.getNamespace() + ".");
} else {
strBuff.append("\n ");
}
strBuff.append(failure.getName() + ".");
strBuff.append(failure.getMethodName() + " ");
strBuff.append(failure.getMessage());
}
}
if (Utils.isNotEmpty(metadataRunTestsResult.getCodeCoverageWarnings())) {
for (int i = 0; i < metadataRunTestsResult.getCodeCoverageWarnings().length; i++) {