dotCover error message
Hi!
We have just installed teamCity on a new server and have problems enabling code coverage on a .Net 4.0 project using dotCover. This is the error message we get after the tests have been run and dotCover tries to collect the code coverage data:
[JetBrains dotCover] Coverage session finished with errors: Can't profile the application because the host protection is applied. Probably it relates with Microsoft SQL..
I have no idea what this means, so any suggestions of how to fix it would be really welcome. We currently use MSTest.
Thanks in advance!
Emil
Please sign in to leave a comment.
Hi again,
A colleague found this post about running tests against a localdb database:
http://blog.coderinserepeat.com/code-coverage-for-sql-server-2012-localdb-driven-tests-with-teamcity-and-dotcover/
Seems similar to our problem since we too use localdb for our tests but we have problems follwoing his suggestions (setting the database as "trustworty").
Any tips on how to perform unit tests on the localdb database with code coverage?
Cheers,
Emil
We have the same problem.
The link you refer to is dead now.
The new link is
http://blog.coderinserepeat.com/2014/08/08/code-coverage-for-sql-server-2012-localdb-driven-tests-with-teamcity-and-dotcover/
We got it working by creating our database "with trustworthy on"
I spoke too soon, we still have the problem even with trustworthy on.
The related thread: https://devnet.jetbrains.com/thread/452434?tstart=0