The Artima Developer Community
Sponsored Link

Agile Buzz Forum
New SUnitToo Version

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
New SUnitToo Version Posted: Oct 31, 2008 3:53 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: New SUnitToo Version
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement

I just published a new version of SUnitToo and SUnitToo(ls). I've used the 7.7 version naming convention we've been using to indicate that the Too(ls) and core both need to be updated.

When I did the first version of SUnitToo, I pretty much punted on TestResources. I just copied over the original from SUnit.

But Martin's been after me (for good reason) to enhance the way resources are managed during the execution of a suite. He has the particular problem that some of his resources are exclusive. Randomizing all the tests in a large suite with mixed resources, means we dump tons of time into swapping resources (might as well not even have them), or worse create all of them when they can't coexist.

So TestSuite's been modified to group tests by their cross section of resources. If you don't use resources, you'll notice nothing different. Everything will grouped by an empty set. It will still run them randomly within the grouping.

I've added a bunch of comments to methods and in particular the TestResource class, and some additional tests as well. And unfortunately, I needed to change the core API for actually running a suite of tests. Which means there's a new version of SUnitToo(ls) as well. Sorry. If you have tools that execute suites, you're going to have to make a slight adjustment. I tried to avoid it, but didn't see a clear way around it in the end.

SUnit original provided two mechanisms for specifying resources for tests. You can return an array of TestResource classes from your a resources method on the class side of your TestCase. And a TestResource could furthermore return an additional array of classes. That's all still there.

I added the ability to return arrays of, or single occurrences of TestResource classes, from arbitrarily named class methods which contain a <resource> tag. Furthermore, you can even have specific tests which use a TestResource by putting a <uses: #{MyTestResource}> right in the specific test.

I'll be interested in hearing about anything I broke. It's always hard to know what kinds of things people put this stuff through.

Read: New SUnitToo Version

Topic: Signs of Sanity? Previous Topic   Next Topic Topic: Oslo roundup

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use