I saw several similar posts here, but all of them are several years old, and marked as "Fixed". Any time I use the button on a test method to try and run or debug that method, it builds, acts like it's running, and the result is no tests ran. Works when running from "Test Runner", but with thousands of tests, that can be a lot more difficult to find what I'm looking for.
See attached video.
Hi Joe,
Thank you for pointing out this issue and sharing the screencast.
I tried to reproduce this, but my attempts were unsuccessful. I see in your screencast that you tried to debug a test of the MSTest framework, but the output contains messages about the "NUnit Adapter" package. Please clarify some points about your test project:
Does the "Go to Runner" item in the context menu works correctly for this test?
Also, please share CodeRush log files from the following folder: %localappdata%\CodeRush\Logs\
I look forward to your response.
Sorry for the delay, holidays and such.
Test started... Warning! Multiple versions of same extension found. Selecting the highest version. Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter : 14.0.5801.4 Not found tests by test criteria Summary: Passed: 0, Failed: 0, Ignored: 0 Duration: 3.75 seconds
Attached logs.
Hi Joe,
Thank you for the attached log files. We examined them, but were unable to determine the cause of the problem.
As far as I understand, when you run a test from the Test Runner window, the test works correctly, but it does not if you do it from the icon in the text editor.
If so, it would be great if you send us a sample project illustrating the issue.
If you can't send us a sample project, please share only the .vbproj and .vb files in which this issue occurs. We will research it.
I have attached a video illustrating how it works on my side.
I'm looking forward to your reply.
Unfortunately, the project I'm seeing this on is absolutely massive (probably part of the cause, tbh), so attaching it is wildly impractical. I've copied the whole solution folder, and deleted anything that's too big or unrelated to my project, hopefully it's enough.
For what it's worth, it used to work, and stopped at some point, but I wasn't able to pinpoint the cause. I always try to keep my Visual Studio and CodeRush updated, so it's hard to tell exactly when or why it happened.
Unfortunately, I had to modify the ticket to private now that I've uploaded source code.
Hi Joe,
Thank you for sharing your project with us. I reproduced this issue in a small sample. It occurs because of the MustInherit class. We will fix this issue in one of our next builds. I cannot give you exact time frames as it depends on how complex the fix would be.
If you wish, you can remove the attachment and make the ticket public again.
That's great news! Thanks, I look forward to the future release.
Thank you for your cooperation. We will inform you once a fix is ready.