Dear Conrad,
>Hi, is there any easy way to run all tests within a package via the
>keyboard when the current unit test method is selected? The current
>default is to only run the currently selected method.
>
>
Not at the moment - the selection is precisely what is run. Usual
approaches are to have another view (i.e. with just the package
selected) in that RB, or in another RB, and switch to the other view
(ALT + <number>) or select the other RB window to run the overall test
suite, then switch back to the view or window where you have the method
selected.
(I guess it would be possible to have keyboard shortcuts to run all the
tests of the active RB window at a specific selection level - e.g. all
in selected package(s), all in selected class(es) or all in selected
protocol(s). In RBSUnitExtensions, the relevant method is
SUnitStatusBar>>testCases
In SunitToo(ls), it is
NavigatorState>>currentTestClassAndSelectorsDo:
In either case, you would need the shortcut to short-circuit the "what
is selected" check to the point designated by the shortcut (protocol,
class or package), then invoke run on the tests selected at that level.
I'm guessing that - barring great customer interest - we won't work on
this - or at least not right away - but if anyone wants to code it up
for the open repository that might be interesting.)
Yours faithfully
Niall Ross
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc