continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1596245 - /continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
Date Tue, 20 May 2014 13:45:20 GMT
Author: brett
Date: Tue May 20 13:45:20 2014
New Revision: 1596245

URL: http://svn.apache.org/r1596245
Log:
show test currently in progress

Modified:
    continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java

Modified: continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
URL: http://svn.apache.org/viewvc/continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java?rev=1596245&r1=1596244&r2=1596245&view=diff
==============================================================================
--- continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
(original)
+++ continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
Tue May 20 13:45:20 2014
@@ -35,9 +35,16 @@ public class CaptureScreenShotsListener
     extends TestListenerAdapter
 {
     @Override
+    public void onTestStart( ITestResult tr )
+    {
+        System.out.print( "Test " + tr.getName() + "... " );
+        super.onTestStart( tr );
+    }
+
+    @Override
     public void onTestSkipped( ITestResult tr )
     {
-        System.out.println( "Test " + tr.getName() + " -> Skipped" );
+        System.out.println( "Skipped" );
         super.onTestSkipped( tr );
     }
 
@@ -45,14 +52,14 @@ public class CaptureScreenShotsListener
     public void onTestFailure( ITestResult tr )
     {
         captureError( tr );
-        System.out.println( "Test " + tr.getName() + " -> Failed" );
+        System.out.println( "Failed" );
         super.onTestFailure( tr );
     }
 
     @Override
     public void onTestSuccess( ITestResult tr )
     {
-        System.out.println( "Test " + tr.getName() + " -> Success" );
+        System.out.println( "Success" );
         super.onTestFailure( tr );
     }
 



Mime
View raw message