OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.7k stars 169 forks source link

Omnisharp Run Test not detecting NUnit's [Theory] test #767

Closed Melandel closed 2 years ago

Melandel commented 2 years ago

Repository for reproduction: https://github.com/Melandel/demo.omnisharpvim.bug.nunitTheory

Steps to reproduce:

Expected behaviour:

Actual behaviour:

nickspoons commented 2 years ago

OmniSharp-vim runs tests via OmniSharp-roslyn: we ask O#-roslyn about the code structure of the file, check that the current method is recognised by O#-roslyn as a test, and then ask O#-roslyn to run it.

In this case, O#-roslyn does not recognise that this is a test. You can see the same behaviour if you run your test project in VSCode:

image Note that VSCode does not offer the "Run Test" or "Debug Test" options for Test1, only for TestSimple.

I'd suggest opening an issue with O#-roslyn.

Melandel commented 2 years ago

Issue created in https://github.com/OmniSharp/omnisharp-roslyn/issues/2379