Setup and Teardown

I was wondering… There are so many different ways to setup and
teardown in the Test Cases thing!!!
So I thought maybe could be a very good idea to open a new topic about
that and people contribute with their ideas about how to implement the
setup and teardown in a typical test case.

Let’s go.

On Fri, Nov 09, 2007 at 07:54:20PM +0900, Mario R. wrote:

I was wondering… There are so many different ways to setup and
teardown in the Test Cases thing!!! So I thought maybe could be a very

Are there? I’m only aware of setup() and teardown(), which seem to
create a lot of overhead when running testcases that just contain
assertions without modifying anything.

What other ways are there of creating fixtures?

On Nov 9, 2007, at 15:39 , Todd A. Jacobs wrote:

Are there? I’m only aware of setup() and teardown(), which seem to
create a lot of overhead when running testcases that just contain
assertions without modifying anything.

what overhead?

A few links about this:
http://www.agileprogrammer.com/dotnetguy/articles/SetupTeardown.aspx

http://codebetter.com/blogs/scott.bellware/archive/2007/09/21/168390.aspx

http://www.codeproject.com/csharp/autp4.asp

A few links about this:

http://www.agileprogrammer.com/dotnetguy/articles/SetupTeardown.aspx
http://codebetter.com/blogs/scott.bellware/archive/2007/09/21/168390.aspx
http://www.codeproject.com/csharp/autp4.asp

On Nov 9, 2007, at 3:54 AM, Mario R. wrote:

I was wondering… There are so many different ways to setup and
teardown in the Test Cases thing!!!

by so many do you mean two? 1 - setup. 2 - teardown. ?

So I thought maybe could be a very good idea to open a new topic about
that and people contribute with their ideas about how to implement the
setup and teardown in a typical test case.

def setup
end

def teardown
end

??

a @ http://codeforpeople.com/

On Nov 12, 2007, at 01:45 , Mario R. wrote:

A few links about this:

http://www.agileprogrammer.com/dotnetguy/articles/SetupTeardown.aspx
http://codebetter.com/blogs/scott.bellware/archive/2007/09/21/168390.aspx
http://www.codeproject.com/csharp/autp4.asp

“dotnetguy”, “csharp”, ‘clever’ quips like “Setup and teardown methods
attract entropy faster than an outsource programmer with his first
patterns book”…

Lots of words, but… How is ANY of this applicable?

As far as I can tell, we’ve got setup, and teardown… and that’s it.
No magic, just plain old ruby code.