On the tip side: if the connection is configured, reduce the wait time for the connection string to 1 second - this will simplify the work. Fill the table with data varieties and ask 3 other processes to spin a cycle that updates pieces of this table with a transaction around the cycle. Do not modify the actual procedure invoked by the application (enter waitfor). This invalidates the integration test.
But actually, this is an example of research in favor of unit testing and dependency injection. Some things are just hard to integrate the test. Unit test + dependency injection .
- Real: Code that holds β Database timeout (hard to reproduce).
- Refactoring: Code that holds β Repository (data access only) β Database
- Unit test: Code that holds> Mock repository for throw -> null
- Now you have an unsuccessful test for code that holds and can fix it.
This is an injection of dependencies. Dev can add a dependency to the database by replacing something that mimics the behavior of the dependency. Itβs good to do all the database tests. Anyway, with Unit test in place, you know that the fix does what it should, but you still need integration testing. In this case, he can better focus on regression, which means that testing does not violate anything else, and the function still works.
You have already created your patch, so I think my answer is too late.
Precipitous May 6 '09 at 16:04 2009-05-06 16:04
source share