As shown in a domain-manager article, I am interested in creating an integration test harness that creates a server and many clients, where all of them are running within a single process. But once I achieve this goal I will be very tempted to execute such integration & system tests from within a unit testing framework (NUnit or VS Team test).
What are the pros and cons of choosing to run integration or system tests from within a unit test framework? Here is my own stab:
Pros
- It can reduce time and cost of performing integration tests.
- Integration tests are achieved possibly with every build.
Cons
- Not all the integration tests will be fast. Some of them make take a minute to run (such as a performance-oriented integration test).
Either way, if my new integration testing code is not placed into a unit testing framework, where would you recommend it be placed? Said differently, what "integration test" frameworks would you recommend?