Browse Source

Using debugCase to debug failed tests.

Herby Vojčík 4 years ago
parent
commit
9c6edefd23
3 changed files with 12 additions and 13 deletions
  1. 1 1
      package.json
  2. 10 11
      src/Helios-SUnit.js
  3. 1 1
      src/Helios-SUnit.st

+ 1 - 1
package.json

@@ -28,7 +28,7 @@
   },
   "dependencies": {
     "@ambers/contrib-web": ">=0.7.3",
-    "@ambers/lang": ">0.23.0",
+    "@ambers/lang": ">0.25.3",
     "bootstrap": "^3.3.7",
     "codemirror": ">=5.44.0",
     "es6-promise": "^4.2.4",

+ 10 - 11
src/Helios-SUnit.js

@@ -2289,25 +2289,24 @@ $core.addMethod(
 $core.method({
 selector: "performFailure:",
 protocol: "actions",
-fn: function (aTestCase){
+//>>excludeStart("ide", pragmas.excludeIdeData);
+args: ["aTestCase"],
+source: "performFailure: aTestCase\x0a\x09aTestCase debugCase",
+referencedClasses: [],
+//>>excludeEnd("ide");
+pragmas: [],
+messageSends: ["debugCase"]
+}, function ($methodClass){ return function (aTestCase){
 var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-$recv(aTestCase)._runCase();
+$recv(aTestCase)._debugCase();
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"performFailure:",{aTestCase:aTestCase})});
 //>>excludeEnd("ctx");
-},
-//>>excludeStart("ide", pragmas.excludeIdeData);
-args: ["aTestCase"],
-source: "performFailure: aTestCase\x0a\x09aTestCase runCase",
-referencedClasses: [],
-//>>excludeEnd("ide");
-pragmas: [],
-messageSends: ["runCase"]
-}),
+}; }),
 $globals.HLSUnitResultListWidget);
 
 $core.addMethod(

+ 1 - 1
src/Helios-SUnit.st

@@ -535,7 +535,7 @@ I group the lists that display test results!
 !HLSUnitResultListWidget methodsFor: 'actions'!
 
 performFailure: aTestCase
-	aTestCase runCase
+	aTestCase debugCase
 ! !
 
 !HLSUnitResultListWidget methodsFor: 'initialization'!