What is the purpose of * .vsmdi? Do I need to control the source code?

What is the purose of the .vsmdi file? Do I need to check the original control system?

+42
unit-testing visual-studio
Sep 26 2018-11-11T00:
source share
2 answers

The VSMDI file is created by Visual Studio when you create a test project for the first time. It contains a list of all the tests that Visual Studio can find in your solution builds and allows you to split your tests into so-called test lists . These test lists can be used to categorize your tests and allow you to select a subset of the tests to run.

You can use this mechanism to perform subselects. However, you can also (freely) assign multiple test categories to the test, which allows you to achieve the same, more flexible way. And with known issues with VSMDI files, such as uncontrolled duplication of these files and outdated tests listed with a warning icon, this might seem like the best way to do such things.

My general suggestion is to register the default .vsmdi file. This will not allow Visual Studio to create (re) create such files yourself and your member systems when new test projects are added. Decide to use test lists or assign categories to tests directly based on your experience. The test list is easy to start, but less suitable is that you want the flexibility to have a large test suite.

+42
Sep 26 '11 at 19:04
source share

It is used for testing in Visual Studio. If you will not test in Visual Studio, I would not worry about it. But if you do, and you have hundreds of tests, it might be worth it.

+7
Sep 26 2018-11-11T00:
source share



All Articles