Test Runner question

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

Test Runner question

Sophie424
I want to customize TestRunner with a class-side method so it opens with
just my classes from MyCategory in it e.g.

TestRunner onMyStuff.

I tried as below but it still opens with every test class in the entire
image. Help?

onMyStuff
 "for testing MyStuff"
 | tr |
 tr := self new.
 tr categoriesSelectedFrom: { 'MyCategory' }.
 ^ ToolBuilder open: tr

Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Test Runner question

Tom Phoenix
On Dec 27, 2007 12:59 AM, itsme213 <[hidden email]> wrote:

> I want to customize TestRunner with a class-side method so it opens with
> just my classes from MyCategory in it e.g.
>
> TestRunner onMyStuff.

I'd go about this in a different way. If you subclass TestRunner, you
can reimplement #findCategories to return just the categories you
want:

  CustomTestRunner>>findCategories
    ^ { 'MyCategory' }.

Does that work for you? Good luck with it!

--Tom Phoenix
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Test Runner question

keith1y
Tom Phoenix wrote:

> On Dec 27, 2007 12:59 AM, itsme213 <[hidden email]> wrote:
>
>  
>> I want to customize TestRunner with a class-side method so it opens with
>> just my classes from MyCategory in it e.g.
>>
>> TestRunner onMyStuff.
>>    
>
> I'd go about this in a different way. If you subclass TestRunner, you
> can reimplement #findCategories to return just the categories you
> want:
>
>   CustomTestRunner>>findCategories
>     ^ { 'MyCategory' }.
>
> Does that work for you? Good luck with it!
>
> --Tom Phoenix
>  
If you use the TestRunner that is in the dev image, the top left pane
has a list of published test suites. So you can make your own project
oriented test suites by customizing #publishedSuites on your TestCase
classes.

Keith



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside