| «« Java IOException and Code Coverage | Looking for Work »» |
|
About
I'm Ryan Lowe, a Software Engineering graduate living in Ottawa, Canada. I like agile software development and Ruby on Rails.
I write this blog in Canadian English and don't use a spell checker. Typos happen.
Projects
» Full-time Ruby on Rails freelancer
» Full-time with Rails since May 2005 » Former committer for RadRails (now Aptana) » I also have a few Rails side-projects in development: 1. wheretogoinTO.com Toronto nightlife 2. Hey Heads Up! TODO list and sharing 3. Layered Genealogy family history research 4. foos for foosball scoring 5. fanconcert for music fans (on hold) Hiring Rails developers? I can telecommute by the hour from Ottawa, Canada »» Email: rails AT ryanlowe DOT ca
BulletBlog
Now hosted on Hey! Heads Up -- check it out!
Syndication
Pings
Recent
Derek Lowe's (Ryan's older brother) words at Ryan's funeral
blog@ryanlowe.ca no more Forging Email Headers: Good, Bad or Ugly? Sarcastic Dictionary (Part 1 of Many) Tags Hierarchies Twisting Rails is Risky Business Risky Business? My Take on Early Alphas Whoa, it's August 2007 Closing Comments A Postscript to "Growth at the grassroots" »» All Blog Posts
Linkage
del.icio.us/ryanlowe
technorati/ryanlowe.ca/blog Aurora Roy Jim Andrew Trasker Travis Kibbee Karen Dr. Unk Ayana Van Bloggers Joel Spolsky Robert Scoble Tim Bray Dave Winer Raymond Chen James Robertson Ruby/Rails Bloggers rubyonrails.org weblog David Heinemeier Hansson Dave Thomas James Duncan Davidson Mike Clark Jamis Buck Signal vs. Noise Tobias Luetke Amy Hoy: (24)slash7 Jeremy Voorhis Eclipse Bloggers Planet Eclipse EclipseZone Luis de la Rosa Eclipse Foundation Kim Horne Billy Biggs Ian Skerrett Mike Milinkovich Bjorn Freeman-Benson Denis Roy
Archives
|
Unit Test Eclipse View
I'd like to have a plugin for Eclipse that will allow me to see unit tests I have written for a method. But not all unit tests that use that method because sometimes that could be a lot -- just the tests I've written to specifically test that method. I usually name the tests using a convention like:test[MethodName]_[Description]() and they will be grouped in files by class. To demonstrate this idea I'm going to take a method I made test-first from the AudioMan project. It takes a long of seconds and returns a formatted String of the format hh:mm:ss. Pretty simple, but it has quite a few tests and it would be nice if they were summarized in a compact view so I can make sure I have all of the boundary cases. Then I could do some semi-formal boundary value analysis. Here's a table of what the view might look like:
I think this view would be a lot easier than looking at a bunch of unit tests -- even in the Outline View (below) -- that you have to scroll up and down. ![]() After being able to view the tests the next step could be allowing the developer to insert a new test. You can fill in the description in the table, the test skeleton is made for you and you double-click on it to fill in the implementation. After that you could get the plugin to make the tests for you completely. With simple inputs and outputs like this example it would be relatively easy I think, but sometimes tests can be much more complicated. In those cases it would still be useful to see the table view but instead of exact variable values written for inputs and outputs you would have brief descriptions and fill in the test implementation manually. Posted at November 03, 2003 at 12:03 AM EST Last updated November 03, 2003 at 12:03 AM EST Comments
This additional request is when you are using your testing framework for more than just unit testing (because it can do so much more) - perhaps when resolving a bug. i.e. So, it would be nice to associate this test to the interaction of two methods for example ... just a thought » Posted by: aforward at November 3, 2003 02:16 PMGetting lazy on me already eh? :) While I can see the efficiency of allowing tests targetting more than one method I think it starts to stray from organized boundary value analysis. Targetting one method at a time is more explicit. But I do agree that sometimes a bug or situation cannot be associated to one single method and we'd have to work around that sort of case. I also like the idea of hooking to bugs to watch for bad regressions -- actually, any regression is bad but ones that customers have already noticed are really bad. But having the bug number in the method name is kinda useless -- maybe a link to the repository (ie. Bugzilla). » Posted by: Ryan at November 3, 2003 02:27 PMthere's much to be desired in the realm of software testing ... i'm just wondering how much peeps are willing to pay for a methodology » Posted by: aforward at November 3, 2003 03:20 PMThat is the ironic thing. Old-schoolers still think that it's something they can ship off afterwards. If only they realised how much of the testing phase they could cut out if they only did it during development BY developers ... ... of course then we'd have to get old school developers to write tests. Yeah right. » Posted by: Ryan at November 3, 2003 04:50 PMI do not think so. » Posted by: Jim at January 6, 2004 05:30 AM |
|||||||||||||||||||||||||||||||||||||||||||||