Alex C
Alex C

Reputation: 17004

How do I keep Visual Studio deleting the Deploy directory at the end of MSTest run

I have an MSTest project set up that takes a series of screenshots as part of the process.

Currently it appears to be the case that the TestResults/Deploy_<computername> 2013-10-10 16_52_16 folder is getting deleted at the end of each test run.

I'd like to keep those screenshots for another part of our workflow AS WELL, if possible I'd like to keep a detailed log of the tests that were run.

When I run locally the Deploy directory gets wiped out.

What options do I have for making sure that these results are saved?

Upvotes: 3

Views: 2715

Answers (1)

aL3891
aL3891

Reputation: 6275

I found this blog post on the subject, does it solve your specific problem?

It looks like the key is telling the TestContext about files you add by calling AddResultsFile

Upvotes: 6

Related Questions