new class to manage icons. Showing failures,etc on a test suite.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / net / sourceforge / phpeclipse / phpunit / XMLReportHandler.java
index 2f8b5aa..69ab8e0 100644 (file)
@@ -22,6 +22,8 @@ public class XMLReportHandler extends DefaultHandler {
        private String currentCommand;
        private String currentTestCount;
        private String currentTestID;
+       private String currentTestName;
+       private String currentTestParentTestSuiteName;
        
        private void doAsyncRunnable(Runnable runnable) {
                
@@ -102,14 +104,17 @@ public class XMLReportHandler extends DefaultHandler {
                        currentCommand = attributes.getValue("command");
                        currentTestCount = attributes.getValue("testCount");
                        currentTestID = attributes.getValue("testID");
+                       currentTestName = attributes.getValue("testName");
+                       currentTestParentTestSuiteName = attributes.getValue("parentTestSuiteName");
                        
                        doAsyncRunnable(new Runnable() {
                                
                                public void run() {
                                        
-                                       view.handleCommand(currentCommand, currentTestCount, currentTestID);            
-                               }
-                       
+                                       //view.handleCommand(currentCommand, currentTestCount, currentTestID, );
+                                       view.handleCommand(currentCommand, new String[] {currentTestID, currentTestCount,  currentTestName, currentTestParentTestSuiteName});           
+                                       
+                               }                       
                        });
 
                } else if (elementName.equals("verdict")) {