@@ -844,12 +844,14 @@ Editor.prototype.showInBrowser = function (url, newWindow) {
844
844
Editor . prototype . playCurrentTestCase = function ( next , index , total ) {
845
845
var self = this ;
846
846
self . getUserLog ( ) . info ( "Playing test case " + ( self . app . getTestCase ( ) . getTitle ( ) || '' ) ) ;
847
+ self . app . notify ( "testCasePlayStart" , self . app . getTestCase ( ) ) ;
847
848
this . selDebugger . start ( function ( failed ) {
848
849
self . log . debug ( "finished execution of test case: failed=" + failed ) ;
849
850
var testCase = self . suiteTreeView . getCurrentTestCase ( ) ;
850
851
if ( testCase ) {
851
852
testCase . testResult = failed ? "failed" : "passed" ;
852
853
self . getUserLog ( ) . info ( "Test case " + testCase . testResult ) ;
854
+ self . app . notify ( "testCasePlayDone" , testCase ) ;
853
855
} else {
854
856
self . getUserLog ( ) . error ( "current test case not found" ) ;
855
857
self . log . error ( "current test case not found" ) ;
@@ -875,6 +877,7 @@ Editor.prototype.playTestSuite = function (startIndex) {
875
877
this . suiteTreeView . refresh ( ) ;
876
878
this . testSuiteProgress . reset ( ) ;
877
879
var self = this ;
880
+ self . app . notify ( "testSuitePlayStart" ) ;
878
881
var total = this . app . getTestSuite ( ) . tests . length - startIndex ;
879
882
( function ( ) {
880
883
if ( ++ index < self . app . getTestSuite ( ) . tests . length ) {
@@ -884,6 +887,7 @@ Editor.prototype.playTestSuite = function (startIndex) {
884
887
} else {
885
888
//Suite done
886
889
self . getUserLog ( ) . info ( "Test suite completed: " + self . testSuiteProgress . runs + " played, " + ( self . testSuiteProgress . failures ? self . testSuiteProgress . failures + " failed" : " all passed!" ) ) ;
890
+ self . app . notify ( "testSuitePlayDone" , total , self . testSuiteProgress . runs , self . testSuiteProgress . failures ) ;
887
891
}
888
892
} ) ( ) ;
889
893
} ;
0 commit comments