I am having a problem where code coverage is not reported across projects.
Setup:
Projects in Solution:
A (project for which test coverage is desired)
A.Test (has project reference to A, and executes methods from A)
[...other projects...]
The DLL's produced from the projects are located in the output directory bin/
For various reasons (IoC and configuration stuff), for the code to execute, I must include the bin/ output directory in the Additional files to include for project A.Test
Observations:
When the tests in A.Test have executed, coverage in A.Test is indicated with green dots, but code lines in A clearly executed by the tests have black dots.
In the NCrunch Tests window, a warning is shown for the A.Test project, stating that
"NCrunch detected unusual behaviour around the resolution of referenced assemblies required by this project in its test environment.
[...]
The following references raised this warning:
[...]
[...]\167852\23\bin\A.DLL was expected to be loaded from
[...]\167852\7\bin\A.dll
"
Questions:
1 Are the missing code coverage indicators related to the unexpected DLL load location?
2 Are there any suggestions for solving this problem?