I have a unit test that deploys a database using a .bak file in the TestInitialize method. I run this test from mstest using dll (not VS), so I need a .bak file to copy it to the shadow directory created by mstest.
I donβt want to add [DeploymentItem] attributes to each test method, Iβm not even sure that this will work, because TestInitialize is the method that uses this file.
Is there a tag that I can add to the project, which will ensure that the .bak file is copied to the shadow directory when working with MSTest in a test DLL?
thanks
source share