Keyboard combination for running all unit tests?

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

Keyboard combination for running all unit tests?

Conrad Taylor
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.

--

Think different and code well,

-Conrad



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Keyboard combination for running all unit tests?

Niall Ross
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