Once any test fails, even if it is fixed, every subsequent run creates a subfolder in TestResults. It contains no files. These folders never get automatically deleted.
Edit: After many more runs, it appears that sometimes the folders are deleted and sometimes not. Race condition involving file locking?
Assert.Fail() into TestMethod1()The TestResults folder does not exist or is empty.
In TestResults, there is a subfolder for each run, even the successful ones. These folders are empty except for In/Out folders, which are empty.
Windows 10
Visual Studio 2017 Community 15.1 (26403.7)
MSTest.TestAdapter 1.1.17
MSTest.TestFramework 1.1.17
This is benign - we can live with this.
I don't understand why this was closed. It may be "benign" but that doesn't mean it's good to put a messy TestResults folder into the root of any solution containing a test project. It should at least be an accepted low priority bug.
We abandoned MSTest because of this.
@pvlakshm I have 3k empty folders there 馃憥 This definitely isn't normal. Why do you even need a feature that generates empty directories?
You might want to take a look a this - I've found a workaround.