[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Setup and Teardown

Mario Ruiz

11/9/2007 10:54:00 AM

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

6 Answers

Todd A. Jacobs

11/9/2007 11:40:00 PM

0

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

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?

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

Ryan Davis

11/10/2007 12:23:00 AM

0


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?


Ryan Davis

11/12/2007 10:16:00 AM

0


On Nov 12, 2007, at 01:45 , Mario Ruiz wrote:

> A few links about this:
>
> http://www.agileprogrammer.com/dotnetguy/articles/SetupTea...
> http://codebetter.com/blogs/scott.bellware/archive/2007/09/21/1...
> http://www.codeproject.com/csharp...

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


ara.t.howard

11/12/2007 5:14:00 PM

0


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