I remember something like ‘explicit‘, and google says that nunit has such attribute.
Does Microsoft.VisualStudio.TestTools.UnitTesting provide something like this?
I remember something like ‘ explicit ‘, and google says that nunit has such
Share
The MSTest tools does not explicitly support this type of behavior at an attribute level. At the attribute level you can either enable a test via the
TestMethodattribute or completely disable it with theIgnoreattribute. Once theIgnoreattribute is added, mstest will not run the test until it is removed. You cannot override this behavior via the UI.What you can do though is disable the test via the property page. Open up the test list editor, select the test you want and hit F4 to bring up the property page. Set the Test Enabled property to false. The test will now not run until you re-enable it through the property page. It’s not exactly what you’re looking for but likely the closest equivalent.