I have written a web application that I would like to write tests for.
Originally, I wrote the application and the tests in parallel, but that fell apart under time pressures. The problem was, I had to prime the database up a certain way for the tests to work.
I have since reasoned that the proper approach is to stat with a clean system and build the test environment, then test against that. Finally, part of the test would be the removal of the files, projects and users creating during the test -- leaving the system as pristine as it started.
There are two features that will be tough to test in a 10-15 minute test:
As always, thanks for your feedback.
Update, re: consideration: I posted this to Meditations rather than SoPW because it was more of a metaphysical question than a 'How do I code this in Perl' -- but it doesn't matter to me where what section it lives in; I'm just happy to get the feedback from the monkish population. --Alex
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Building a test environment
by derby (Abbot) on Jun 05, 2007 at 14:00 UTC | |
by Fletch (Bishop) on Jun 05, 2007 at 14:03 UTC | |
by talexb (Chancellor) on Jun 05, 2007 at 14:56 UTC | |
by perrin (Chancellor) on Jun 05, 2007 at 16:17 UTC | |
Re: Building a test environment
by perrin (Chancellor) on Jun 05, 2007 at 13:50 UTC | |
by talexb (Chancellor) on Jun 05, 2007 at 14:51 UTC | |
by perrin (Chancellor) on Jun 05, 2007 at 16:04 UTC | |
Re: Building a test environment
by jagh (Monk) on Jun 05, 2007 at 18:30 UTC | |
by talexb (Chancellor) on Jun 05, 2007 at 19:20 UTC |