Visual-Studio – How to Clear the [Ignore] cache of the test method? (No need to restart Visual Studio)

I have some tests marked as [Ignore], but now, I want to run them again, so I deleted the [Ignore] attribute, but Visual Studio still treats them as ignored.

What can I do to clear the cache without ignoring the test?

Update:

It looks like this data is stored in the vsmdi file:

So it is necessary to delete the vsdmi file or regenerate it in other ways.

However, visual studio caches it, so restart Visual studio seems to solve the problem (sometimes at least).

I also have this problem.

< /p>

You can manually change the .vsmdi file or delete it. If you open the test view again (after deletion), it will generate a new file.

In addition, the test settings you choose may The same problem will occur. It will also “cache” it.

I have some tests marked as [Ignore], but now, I want to run them again, so I deleted the [Ignore] attributes, but Visual Studio still treats them as ignored.

What can I do to clear the cache and no longer ignore the test?

Update:

It looks like this data is stored in the vsmdi file:

So it is necessary to delete the vsdmi file or regenerate it in other ways.

However, visual studio caches it, so restart Visual studio seems to solve the problem (sometimes at least).

I also have this problem.

You can manually change the .vsmdi File or delete it. If you open the test view again (after deleting), it will generate a new file.

In addition, the same problem may occur with the test setup you selected. It will also be “cached” It.

Leave a Comment

Your email address will not be published.