I was able to reproduce this issue using a deomonstration Visual Studio .NET 2012/.NET 4.5 solution. The solution consists of a class library and a unit test project, and both are set to be compiled in 32-bit (x86) and 64-bit (x64) - "Any CPU" was removed from the solution platform.
I then set up two Jenkins build jobs for this solution. Both jobs compile and run unit tests with code coverage. One does this for x86 and the other for x64.
For the x86 job, code coverage results were generated. For the x64 job, no code coverage results were generated. After examining the Console Output for the x64 job, I logged onto the build machine with the same local user account configured to run builds on that machine, copied the VSTest.Console command used during the build and found that code coverage results were then generated.
Hence it appears that there is an issue with Jenkins generating code coverage results for .NET 4.5 solutions for the x64 platform.
I was able to reproduce this issue using a deomonstration Visual Studio .NET 2012/.NET 4.5 solution. The solution consists of a class library and a unit test project, and both are set to be compiled in 32-bit (x86) and 64-bit (x64) - "Any CPU" was removed from the solution platform.
I then set up two Jenkins build jobs for this solution. Both jobs compile and run unit tests with code coverage. One does this for x86 and the other for x64.
For the x86 job, code coverage results were generated. For the x64 job, no code coverage results were generated. After examining the Console Output for the x64 job, I logged onto the build machine with the same local user account configured to run builds on that machine, copied the VSTest.Console command used during the build and found that code coverage results were then generated.
Hence it appears that there is an issue with Jenkins generating code coverage results for .NET 4.5 solutions for the x64 platform.