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.

···

--
Posted via http://www.ruby-forum.com/.

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 Fri, Nov 09, 2007 at 07:54:20PM +0900, Mario Ruiz 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

--
"Oh, look: rocks!"
  -- Doctor Who, "Destiny of the Daleks"

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 9, 2007, at 3:54 AM, Mario Ruiz wrote:
--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama

what overhead?

···

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.

A few links about this:
<a
href="http://www.agileprogrammer.com/dotnetguy/articles/SetupTeardown.aspx">http://www.agileprogrammer.com/dotnetguy/articles/SetupTeardown.aspx</a>

<a
href="http://codebetter.com/blogs/scott.bellware/archive/2007/09/21/168390.aspx">http://codebetter.com/blogs/scott.bellware/archive/2007/09/21/168390.aspx</a>

<a
href="http://www.codeproject.com/csharp/autp4.asp">http://www.codeproject.com/csharp/autp4.asp</a>

···

--
Posted via http://www.ruby-forum.com/.

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

···

--
Posted via http://www.ruby-forum.com/.

"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.

···

On Nov 12, 2007, at 01:45 , Mario Ruiz 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
Advanced Unit Testing, Part IV - Fixture Setup/Teardown, Test Repetition And Performance Tests - CodeProject