Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's "Local.testsettings" and "TraceAndTestImpact.testsettings" files that Visual Studio create when init a new test project?

When create a new test project using visual studio these 2 files are created, what's the purpose of these files? If to run the tests using Visual Studio, these files apparently is not needed.

like image 751
Acaz Souza Avatar asked Feb 23 '12 18:02

Acaz Souza


1 Answers

Local.testsetting mainly used to define your test attributes. Lets assume you have set of test cases that you want to execute using a remote controller machine that you can configure in 'Host' section in this setting file. Also there are multiple other test attributes like 'TestTimeout: to set specific timeout for all your test cases, 'Setup & Cleanup Script': if you wish to run some script before running any test and after all your test cases executes. You can take this file as a Global setting file for your all test cases within this test project.

There will be another file with extension .VSMDI. This file contains list of test cases within this test project. And you can group test cases using this. For example, lets assume you have set of test cases that you want to integrate in your automatic build system and you have some other test cases (Like something opening a browser and check for some element) that you don't want to integrate with your build system. So can do all this grouping using this .vsmdi.

-Thx

like image 198
Pritam Karmakar Avatar answered Oct 11 '22 22:10

Pritam Karmakar