Oftentimes, a variety of tests are used to get the best of both worlds. Local tests will be run first since they are the easiest and most efficient. Then, on the server side, tests can be run pre-merge and sometimes post-merge as well. Of course, exactly which tests and the extent of testing is based on the scenario.