MSTest: Unit testing - input file not found ... vsmdi

I have a project that I would like to add unit test. There are other unit tests in the project that were written by previous developers. I am contacting to test an object that reads, and an XML file into an object. To do this, I select a test project and add unit test, and then select the class for which I want unit test. The stubbed out class is automatically generated, and I can successfully compile the project, but when I started, I got an error

No input file found: C: \ Blah \ Blah \ Blah \ Blah \ MYPROJECTNAME.vsmdi.

I tried to check all the files in the test solution and recreate the unit test, but I still get the same error

For information:

  • There are no vsmdi files in my project
  • Starting Visual Studio 2010
  • TFS 2010
  • Orientation of the .NET 2.0 runtime (cannot go to 4.0 due to control limitations)
  • This is a console application.
  • Using MSTest

Any help would be appreciated! Thanks ... Orin

+6
source share
2 answers

I had a similar problem. What I've done:

  • Closed Solution and Visual Studio
  • Removed "partial read only" from the project folder
  • Open VS again and run tests

I still have this message in the Output Test window, but the tests are executable.

Hope this helps.

+2
source

If this is still a problem for you, I would suggest checking that you have write permissions to the directory where it is trying to create the VSMDI file both locally and on the build server, if you are using the server build, If I remember correctly, you run into this message if VS cannot create the VSMDI file.

0
source

Source: https://habr.com/ru/post/905937/


All Articles