The Trunk: SUnitGUI-tpr.68.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: SUnitGUI-tpr.68.mcz

commits-2
tim Rowledge uploaded a new version of SUnitGUI to project The Trunk:
http://source.squeak.org/trunk/SUnitGUI-tpr.68.mcz

==================== Summary ====================

Name: SUnitGUI-tpr.68
Author: tpr
Time: 25 September 2017, 2:40:47.67289 pm
UUID: 5d33c773-e628-446f-88e8-47bfdbf2dc22
Ancestors: SUnitGUI-ul.67

Add a simple way to run a single failed method in a MessageTally.

=============== Diff against SUnitGUI-ul.67 ===============

Item was changed:
  ----- Method: TestRunner>>failureMenu: (in category 'accessing-menu') -----
  failureMenu: aMenu
+ ^ aMenu
+ add: 'Profile this test' action: #runProfileOnFailure;
+ yourself!
- ^ aMenu!

Item was added:
+ ----- Method: TestRunner>>runProfileOnFailure (in category 'actions') -----
+ runProfileOnFailure
+ "if we have selected a failure case, run it within a MessageTAlly and see what is taking time"
+
+ failedSelected ifNotNil: [self
+ basicRunSuite: (TestSuite new addTest: failedSelected;
+ yourself)
+ do: [:each | MessageTally
+ spyOn: [self runTest: each]]]!