The Artima Developer Community
Sponsored Link

Agile Buzz Forum
The SUnit Irony and Dilemma

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
The SUnit Irony and Dilemma Posted: Nov 12, 2004 6:43 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: The SUnit Irony and Dilemma
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
In SUnit, there is a great irony. When I first started eXtreme Programming, this was one of the first facets that I was exposed. And in a very cool meta reflective way, SUnit itself was an example XP practices at work, having kept it simple. No frameworks there!

My experience with XP driven evolutions of object systems, is that often I come to a point, where enough of the original context has changed, it's time to back up a little, and see if its not time to refactor mercilessly. But this has never really happened to SUnit. Maybe the design as is still stands. And the the fact that the code is orders of magnitude larger than the original means nothing. But if that's not the case. Then what a great irony. That this penultimate example of testing and how code should grow evolve, hasn't.

Sitting here staring at the thing... I'm not sure what to think. I have a number of changes that come to mind. One of the biggest hurdles that stands in the way, is the xflavor stuff. Using CompiledMethods as test place holders, that would be, well, dialect specific. I'd like to wire triggerEvent:'s in, but that's dialect specific too. And there's this big layer of sunitMethods that get in the way.

Another, is that there's no tight community with an agreed vision of desires. For example, I don't think TestSuite's tests should be an OrderedCollection. I think it should be a Set. And I think run: should always run: them randomly. But if someone out there is depending on being able to run suites in the order they composed them, I have no idea. Even more interesting, if someone wants to stress test units by loading multiples of the same test in a suite, I don't know.

I toyed with doing a clean room VW specific implementation of SUnit, but when I got looking at the integrated tool momentum behind the current version (some of which I've written), I balked.

Read: The SUnit Irony and Dilemma

Topic: Post Election Plans Previous Topic   Next Topic Topic: My son's new friend

Sponsored Links



Google
  Web Artima.com   

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