Re: Best Way to Test Against a Database
- From: Michael Justin <michael.justin@xxxxxxx>
- Date: Wed, 14 May 2008 18:22:14 +0200
jehugaleahsa@xxxxxxxxx wrote:
How well does this verify the parameters that I set?
As I wrote, this approch will verify the correctness of the SQL statement. To verify the correctness of the results, the query has to be executed.
As Andy wrote, resetting the database is critical. A clean test environment has to be in place for every test, to make them repeatable.
The test steps should also be independent, so that it is not neccessary to run all tests always together in a specific order. This setup makes database tests very slow.
Every developer will also need his/her own test database, to avoid 'test run wars'. (If there is a way to test the business logic without accessing the database, this would be much better. However this does not mean that database tests are not neccessary in this case.)
Michael
.
- Follow-Ups:
- Re: Best Way to Test Against a Database
- From: Joachim Van den Bogaert
- Re: Best Way to Test Against a Database
- References:
- Best Way to Test Against a Database
- From: jehugaleahsa@xxxxxxxxx
- Re: Best Way to Test Against a Database
- From: Michael Justin
- Re: Best Way to Test Against a Database
- From: jehugaleahsa@xxxxxxxxx
- Best Way to Test Against a Database
- Prev by Date: Path access
- Next by Date: Re: Hmm......
- Previous by thread: Re: Best Way to Test Against a Database
- Next by thread: Re: Best Way to Test Against a Database
- Index(es):
Relevant Pages
|