Closed Melandel closed 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:
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.
Issue created in https://github.com/OmniSharp/omnisharp-roslyn/issues/2379
Repository for reproduction: https://github.com/Melandel/demo.omnisharpvim.bug.nunitTheory
Steps to reproduce:
UnitTest1.cs
:OmniSharpRunTest
Expected behaviour:
dotnet test
: 3 tests running and greenActual behaviour:
No test found
is echo'd by vim