Build/Test Issues

Missing files when running test

Started by mtanneryd on 5,092 views

Hi!

Our tests rely heavily on various test data files. These files are all set to "Copy always". But, tests in project A might be using test data files included in a referenced project B. These files are not copied into the ncrunch workspace, only the files defined in the same project as the actual test is in. We need files for the current project and ALL its referenced projects to be copied to the workspace. How do we resolve this?

Any and all help would be much appreciated.

/Måns
Hi Måns,

Thanks for posting!

You can solve this by turning on the 'Copy referenced assemblies to workspace' project-level configuration setting inside Project A. Note that there are some performance implications behind doing this. If you can find a way to reference these data files relative to the Project B assembly, this will provide you with a cleaner solution.


Cheers,

Remco

Post a reply

Log in to reply.