You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/01/15 18:22:45 UTC
svn commit: r1433535 -
/openoffice/trunk/test/testcommon/source/org/openoffice/test/Run.java
Author: hdu
Date: Tue Jan 15 17:22:44 2013
New Revision: 1433535
URL: http://svn.apache.org/viewvc?rev=1433535&view=rev
Log:
more verbose reporting of failures in the autotesting framework
Modified:
openoffice/trunk/test/testcommon/source/org/openoffice/test/Run.java
Modified: openoffice/trunk/test/testcommon/source/org/openoffice/test/Run.java
URL: http://svn.apache.org/viewvc/openoffice/trunk/test/testcommon/source/org/openoffice/test/Run.java?rev=1433535&r1=1433534&r2=1433535&view=diff
==============================================================================
--- openoffice/trunk/test/testcommon/source/org/openoffice/test/Run.java (original)
+++ openoffice/trunk/test/testcommon/source/org/openoffice/test/Run.java Tue Jan 15 17:22:44 2013
@@ -28,6 +28,7 @@ import java.util.logging.Level;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.RunListener;
+import org.junit.runner.notification.Failure;
import org.openoffice.test.common.FileUtil;
import org.openoffice.test.common.Logger;
import org.openoffice.test.common.NamedRequest;
@@ -142,10 +143,15 @@ public class Run {
int code = 0;
for (NamedRequest request : requests) {
Result result = core.run(request.getRunner());
- if (!result.wasSuccessful())
+ if (!result.wasSuccessful()) {
code = 1;
+ java.util.List<Failure> failureList = result.getFailures();
+ for( Failure f: failureList)
+ log.log( Level.SEVERE, "Failure in "+request.getName()+" :"+ f.toString(), f.getException());
+ }
}
System.exit(code);
}
}
+