You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/08/28 21:40:36 UTC

svn commit: r1378282 - /jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java

Author: pmouawad
Date: Tue Aug 28 19:40:35 2012
New Revision: 1378282

URL: http://svn.apache.org/viewvc?rev=1378282&view=rev
Log:
Add display of full stacktrace without need to look at logfile (useful for jenkins tests)

Modified:
    jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java

Modified: jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java?rev=1378282&r1=1378281&r2=1378282&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java (original)
+++ jmeter/trunk/test/src/org/apache/jorphan/test/AllTests.java Tue Aug 28 19:40:35 2012
@@ -35,6 +35,7 @@ import junit.framework.TestResult;
 import junit.framework.TestSuite;
 import junit.textui.TestRunner;
 
+import org.apache.commons.lang3.exception.ExceptionUtils;
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.jorphan.logging.LoggingManager;
 import org.apache.jorphan.reflect.ClassFinder;
@@ -368,7 +369,7 @@ public final class AllTests {
                     tests++;
                     suite.addTest(t);
                 } catch (Exception ex) {
-                    System.out.println("ERROR: (see logfile) could not add test for class " + name + " " + ex.toString());
+                    System.out.println("ERROR: (see logfile) could not add test for class " + name + " " + ExceptionUtils.getStackTrace(ex));
                     log.error("error adding test :", ex);
                 }
             }