O'Reilly logo

Professional Test-Driven Development with C#: Developing Real World Applications with TDD by Jeff McWherter, James Bender

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

WHEN AND HOW TO RUN INTEGRATION TESTS

Integration tests, especially end-to-end tests, can take much longer to run than unit tests, due to their need to interact with the application's external dependencies. The need to interact with these external dependencies can also cause issues if two or more developers attempt to run these tests concurrently. For these reasons, integration and end-to-end tests are not, and should not be, run as often as unit tests.

When being run by developers, integration and end-to-end tests should be run when the developers have completed or are close to completing a feature or user story. This is necessary to ensure that you have not introduced any defects into the application's current functionality. Some developers or development teams create a practice that developers need not run integration and end-to-end tests that do not relate to the work, function, or user story that the developer is working on at the time. This can be a fine practice, provided that the application is segmented to make it easy to determine which tests are germane and which tests don't need to be run. At the very least, these tests must be run before you commit any code to the main code repository.

Integration and end-to-end tests should also be run as part of a CI process. One of the purposes of a CI process is to ensure that all the various components and sections of an application integrate and function correctly before the application is released to the QA staff. This ensures ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required