Skip to content

Run dwds tests in a copy of the sdk directory #1989

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

Merged
merged 25 commits into from
Feb 23, 2023

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Feb 23, 2023

Test-only changes

Run tests using a copy of the Dart SDK directory so we don't pollute the default one with generated assets.

  • Replace old TestSdkConfigurationProvider by the copying one.
  • Pass a TestSdkConfigurationProvider toTestContext contsructor.
  • Make dwds tests create and dispose of the SDK configuration provider as needed.
  • Make sure all commands that are run from tests use dart executable from the SDK copy.

Closes: #1985
Towards: #1878

@annagrin annagrin merged commit 28a090e into dart-lang:master Feb 23, 2023
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.

Run tests in a copy of the sdk directory
2 participants