Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discover VSTest and MSTest using VSWhere #2843

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

farlee2121
Copy link
Contributor

@farlee2121 farlee2121 commented Oct 20, 2024

Fake.DotNet.Testing.VSTest and Fake.DotNet.Testing.MSTest currently search for VSTest and MSTest respectively using hard-coded lists of possible paths. These paths are simply different versions of Visual Studio.

@robertpi previously did work to update these paths and partially move them to a VSWhere for locating Visual Studio installs.
The work was not merged. #2542

This PR rebases #2542 and further migrates VSTest discovery to use VSWhere.

This should reduce effort to keep Fake.DotNet.Testing.VSTest and Fake.DotNet.Testing.MSTest up to date as new versions of Visual Studio are released.

This PR will also fix the current issue where Fake.DotNet.Testing.VSTest cannot automatically discover VSTest with recent versions of Visual Studio.

Note that VSWhere only works for VisualStudio 2017+. We'll want to re-add hard-coded pre-2017 paths if we want to continue supporting those older versions of Visual Studio

@xperiandri

Copy link
Contributor

Test Results

    9 files  ±0      9 suites  ±0   44m 13s ⏱️ - 2m 54s
  439 tests ±0    439 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 251 runs  ±0  1 251 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ef20bf0. ± Comparison against base commit 6f2fc43.

@xperiandri
Copy link
Collaborator

@farlee2121 cool! Should I merge?

@farlee2121
Copy link
Contributor Author

It should be ready to merge if you're also satisfied with it.

@xperiandri xperiandri merged commit b61f117 into fsprojects:master Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants