Guys, kudos for taking on the challenge! If you're aimed at creating an excellent testing experience in VS Code, I'd like to join.
After passing through the code, here is my two cents. Running dotnet test for test discovery will be slow for seriously-sized projects. The UX will be identical to that of Visual Studio test runner, which is not that wonderful compared to ReSharper, IMHO.
According to a research I did earlier, OmniSharp server is capable of scanning source file contents, and providing a list of features on each method. Specifically, we're going to look for XunitTestMethod, and maybe NUnitTestMethod in the future. (See this PR).
We can spin up background discovery for entire project/solution, as soon as we detect that .NET Core project/solution is loaded. We can re-scan the active file as it is being edited.
Discovery based on source code can also bring me the tests even if my code doesn't compile - at least it will allow exploring and navigating the code. In Visual Studio test runner, the entire solution must be compiled before test discovery can start, so that it sometimes takes more than a minute to see my tests - this one is definitely a UX killer.
Guys, kudos for taking on the challenge! If you're aimed at creating an excellent testing experience in VS Code, I'd like to join.
After passing through the code, here is my two cents. Running
dotnet testfor test discovery will be slow for seriously-sized projects. The UX will be identical to that of Visual Studio test runner, which is not that wonderful compared to ReSharper, IMHO.According to a research I did earlier, OmniSharp server is capable of scanning source file contents, and providing a list of features on each method. Specifically, we're going to look for
XunitTestMethod, and maybeNUnitTestMethodin the future. (See this PR).We can spin up background discovery for entire project/solution, as soon as we detect that .NET Core project/solution is loaded. We can re-scan the active file as it is being edited.
Discovery based on source code can also bring me the tests even if my code doesn't compile - at least it will allow exploring and navigating the code. In Visual Studio test runner, the entire solution must be compiled before test discovery can start, so that it sometimes takes more than a minute to see my tests - this one is definitely a UX killer.