This blog post will show you how you can collect code coverage data when running web and load tests: http://blogs.msdn.com/slumley/pages/collecting-code-coverage-data-when-running-web-load-tests.aspx