Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All assemblies are not getting copied in test result - MS test

Hi I am using MS test for unit testing. I have some references in test project which are not refer directly. when ms test create test result folder it copies only dll which are used in test. If I initialize reference assembly in test initialize it work.

But is there any other way to copy all assemblies in test result folder or is there ant way to run test without even creating test result.

Thank you :)

like image 549
vishal mane Avatar asked Oct 21 '22 21:10

vishal mane


1 Answers

In the TestSettings, add the required files to the Deployment Items. Also, check the properties on the reference and ensure it is set to 'Copy to output folder'.

The related question: How can I get "Copy to Output Directory" to work with Unit Tests? has the details.

like image 117
Eris Avatar answered Nov 11 '22 08:11

Eris