How To Use Data Driven Tests With MSTest

I want to execute data driven test with MStest.

Solution

1.  Right click "Solution Items"and choose Add > New Item.

Solution Items

2.  Highlight Test Settings on the left, again in the center, and give it a unique name. Click Add.

Add test settings file

3.  The Test Settings window appears. Click Deployment on the left, check *Enable deployment * and add the data folder as a deployment item.

Enable deployment

3.  On your MSTest command line specify the .testsettings file to use during the test run.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy