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

Move classification tests to new framework #65734

Merged
merged 4 commits into from
Dec 9, 2022

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented Dec 2, 2022

No description provided.

{
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
var dte = await GetRequiredGlobalServiceAsync<SDTE, EnvDTE.DTE>(cancellationToken);
dte.ExecuteCommand(commandName, argument);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sharwell wanted to check with you if this was appropriate - this is how the old framework did it, but the new framework uses a different method - https://github.com/microsoft/vs-extension-testing/blob/d460a813832a479f21ec0d076de213e6a1a5ccae/src/Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.UnitTests/Resources/TestGenerationForVS2022/ShellInProcess1.g.cs#L61

However I didn't see (or understand perhaps) a way to pass args in the way that the new framework is doing it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new approach intentionally avoids DTE. We can update it to support arguments tomorrow. 👍

@dibarbet dibarbet marked this pull request as ready for review December 9, 2022 00:32
@dibarbet dibarbet requested a review from a team as a code owner December 9, 2022 00:32
@dibarbet dibarbet merged commit 7e5da02 into dotnet:main Dec 9, 2022
@ghost ghost added this to the Next milestone Dec 9, 2022
@dibarbet dibarbet deleted the move_classification_tests branch December 9, 2022 03:17
@Cosifne Cosifne modified the milestones: Next, 17.5 P3 Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants