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

Apex tests do not call EnsureVisualStudioHost() consistently #13786

Open
jimmylewis opened this issue Sep 13, 2024 · 0 comments · May be fixed by NuGet/NuGet.Client#6027
Open

Apex tests do not call EnsureVisualStudioHost() consistently #13786

jimmylewis opened this issue Sep 13, 2024 · 0 comments · May be fixed by NuGet/NuGet.Client#6027

Comments

@jimmylewis
Copy link

NuGet Product Used

Other/NA

Product Version

n/a

Worked before?

No response

Impact

None

Repro Steps & Context

This is purely from reviewing the Apex test code and noticing the inconsistency. Some tests call it, some do not. It is called often enough that is appears to be used to ensure a consistent state at the start of each test.

A possible fix to ensure this consistency would be to place this call in a [TestInitialize] method on the base test class. This would by default ensure that all tests follow the same logic, and would simplify test authoring (don't need to remember to copy this every time).

Verbose Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants