[n]unit testing on big'ish systems
foldface_at_yahoo.co.uk
Date: 12/21/04
- Next message: Alan Gauld: "Re: OOA and OOD"
- Previous message: U-CDK_CHARLES\\Charles: "Re: Business Entities in the UI"
- Next in thread: Shane Mingins: "Re: [n]unit testing on big'ish systems"
- Reply: Shane Mingins: "Re: [n]unit testing on big'ish systems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Dec 2004 14:02:13 -0800
Terrible subject line
I'm presently working on a system which comprises of a number of
parts.
We have a database, a large c++ program which has been about for many
years
and writes and reads to the database and a c# program which does some
writing and lots of reading from the database.
What I'm after is some guidelines on how to unit test the c#
program.
Points to consider
- A lot (pardon the vague'ness) of the logic is in stored procedures
- The c# program does a lot of reading and not so much writing to the
database
- You need a fair bit of information in the database in order to do
anything
useful.
- Although these programs have been about for a while there has been
no
unit testing at all until now.
A bit of reading throws up
- mock objects, great but given the need for lots of setup data before
you
begin and given that you can always rollback db changes I possibly
should
start with an example db? Can't help but think thats limiting though
as
a dynamic input would reveal more, but the large nature of the db
prohibits
this.
- Assume using mock objects, as a lot of the code is in stored
procedures
I can't help but think that nunit is the wrong vehicle to be testing
this?
Any one have experience of something like TSqlUnit?
Q: What I want to get from this given the advanced (in years) nature
of the code.
A: I've worked on test first stuff in the past but not with n-tier
stuff of this
nature, I've been further from the database so I could test classes
meaningfully, stored procedures weren't a consideration.
I'm at the throwing hands up stage and could do with some guidance in
moving forwards, any ideas?
- Next message: Alan Gauld: "Re: OOA and OOD"
- Previous message: U-CDK_CHARLES\\Charles: "Re: Business Entities in the UI"
- Next in thread: Shane Mingins: "Re: [n]unit testing on big'ish systems"
- Reply: Shane Mingins: "Re: [n]unit testing on big'ish systems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|