formulahendry / formulahendry/vscode-dotnet-test-explorer

`Go To Test` doesn't work for tests where there are multiple with the same name (mstest and nunit)

Open
#79 8 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
208
Forks
93
PR merge metrics
No merged PRs in 30d

Description

If there are multiple tests with the same name, _Go To Test_ (right click option) will not work with mstest and nunit projects. It does work for xunit.

The reason is something like: When we try to find symbols with the name "Pass" for instance, it will return two matches. But it does not give us any information about which class those two methods belongs to, only an uri to the file they are located in. So we try to find a testmethod which fqn matches the uri. But if the file structure differs (and hence the uri differs) we don't know which of the two tests to go to.

It should work in the vscode-dotnet-test-exolorer xunit-example since it's class structures follows the file structure

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.