Search code examples
.nettestingbuildintegration-testingbuild-process

Is it normal to execute integration tests in the build machine on each build or just unit tests?


We have a discussion in our company regarding whenever to execute integration tests on the build machine or not.

My guess is that we should not do it but I don't have a strong reasoning supporting me. What are your thoughts?

Thanks.


Solution

  • I would run integration tests on the build server if they were of benefit. One of the main reasons for having a build server is to have confidence that the current builds works. I have in the past had two build configurations for a project (in TeamCity) where the first one would be the main build and would run the normal unit tests and the other configuration would run the integration tests. The main reason for this was feedback. The main build runs in a short about of time. The integration tests would take long and were run daily plus it could run on a different agent if needed.