formulahendry / formulahendry/vscode-dotnet-test-explorer
Fast source-based test discovery with OmniSharp
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/OmniSharp/omnisharp-vscode/pull/996/files)).
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.