How to manage test fixtures for end-to-end testing?

Posted by Peter Becker on Stack Overflow See other posts from Stack Overflow or by Peter Becker
Published on 2009-07-28T06:43:47Z Indexed on 2010/03/23 9:03 UTC
Read the original article Hit count: 500

Having just set up a test framework for a new web application, I realized I missed one of the big questions: "How do I make tests independent from each other?"

Years ago I have set up some complicated Ant scripting to do full cycles of deleting all database tables, creating the schema again, adding test data, starting the application, running one test and then stopping the application. That was a pain to maintain and restricted us to nightly tests due to the time it took to run the full suite. It was still worth it, but I wonder if there is an easier way.

Are there alternatives to this approach? The main criterion is that each test should not be affected by any other test in the suite, no matter if it failed or succeeded.

© Stack Overflow or respective owner

Related posts about end-to-end

Related posts about testing-strategies