Re: unit testing on big'ish systems
From: Shane Mingins (shanemingins_at_yahoo.com.clothes)
Date: 01/10/05
- Next message: frebe: "Re: Queries and OO"
- Previous message: Rod Davison: "Re: Avoiding the second historic mistake (oh puleez)"
- In reply to: foldface_at_yahoo.co.uk: "Re: unit testing on big'ish systems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 Jan 2005 08:23:29 +1300
> Books on its way. Reading the contents page seems to suggest it'll be
> more for c++
> legacy code though.
I am a bit further thru and I would have to say that it is quite language
agnostic. There are some specific techniques/tips/tricks/mentions for some
languages brought to the readers attention, but overall the book would apply
to most languages. Where you would have issues is if you were applying it
to a language that did not have nUnit available to you.
I have not seen any techniques in the book for code in stored procedures.
>
> So ta for the book link, if you know anything more about databases
> and unit testing then please
> let me know.
>
So most of the behaviour you wish to test is in stored procedures, correct?
I would be thinking that the testing approach I may take would depend on
whether I am keeping the behavior in the stored procedure or whether I am
moving it out and into my domain model.
Have a look at the test-driven development group at Yahoo.
http://groups.yahoo.com/group/testdrivendevelopment/
There has been plenty of discussion on testing stored procedures and
databases. I am not sure if the "answer" has been found.
Any test that hits the database will be slow. One alternative is to use
some small in-memory database like HSQLDB http://hsqldb.sourceforge.net/
Not sure if http://sqlunit.sourceforge.net/ is of any help. I just came
across it with a google. I am guessing you probably want the C# equivalent.
Google certainly provided many pages that looked like they were worth a
read:
HTH
Shane
--------------------------------------------------------------------------
"Our thinking was wrong - but our tests were not. Very interesting..." -
Ron Jeffries
- Next message: frebe: "Re: Queries and OO"
- Previous message: Rod Davison: "Re: Avoiding the second historic mistake (oh puleez)"
- In reply to: foldface_at_yahoo.co.uk: "Re: unit testing on big'ish systems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|