0

I want to deploy a file from a single place in code, I don't want to decorate many tests by the same attribute with the same parameter.

I use mstest.

1 Answer 1

5

You can decorate the test class with [DeploymentItem] attribute so you do not need to do it for each single tests.

Alternative you could use Deployment page of .testsettings file, see How to: Deploy Files for Tests

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.