I can't manually run a NUnit test flagged with [IgnoreAttribute]. Even if I click icon next to method (Run or Debug) it won't run it and declare it as skipped.
Test Runner - Disable menu items to prevent execution of ignored tests
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
Hi Miha,
Thank you for your note. We have discussed this problem and decided to hide the "Run" & "Debug" options from the icon menu for ignored tests. This decision is related to the restrictions of the Test Frameworks, which consist in that running tests marked with IgnoreAttribute are unavailable.
I'd prefer the other way round though - to run those when explicitly hit run/debug. I think of Ignore attribute as valid when running a batch of tests but not when wanting a single test to run.
Either way it is not a big deal.
Miha,
We also considered this scenario when discussing your inquiry. Though at first glance, we thought it would be convenient for users, we then understood that the implementation of this functionality would require introducing a kind of hack that can cause unpredictable results and instability in the mechanism of running tests. It would be especially evident if we try to apply it to the whole list of supported test environments.
This is the reason that forces us not to move in this route, but hide the "Run test" and "Debug test" options in the icon menu instead, not to confuse our users. As soon as we introduce these changes, we will update this thread.