Skip to content

Run webdev tests in a copy of the sdk directory #1987

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

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented Feb 23, 2023

Test-only changes

Run webdev tests in a copy of the sdk. This change is a part of moving all of our tests to run in an sdk copy.

  • Move runWebdev and prepareWorkspace into a testRunner class that can create and dispose of the sdk copy.
  • Make all integration and e2e tests use testRunner.

Towards: #1985
Related: #1878

@annagrin annagrin marked this pull request as draft February 23, 2023 01:06
@annagrin annagrin mentioned this pull request Feb 23, 2023
13 tasks
@annagrin annagrin marked this pull request as ready for review February 23, 2023 18:11
@annagrin annagrin requested a review from elliette February 23, 2023 18:40
@annagrin annagrin changed the title Run webdev tests in a copy of the sdk Run webdev tests in a copy of the sdk directory Feb 23, 2023
@@ -37,17 +33,6 @@ Future<String> waitForAppId(TestProcess webdev) async {
return appId;
}

Future<String> prepareWorkspace() async {
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember adding this recently to fix some of the flakes we were hitting for our CI tests on Windows. Is this now done elsewhre?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see where it has been moved to, nevermind!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it just moved to the test_utils inside TestRunner class, as I needed to run it using correct dart path from the sdk layout.

@annagrin annagrin merged commit b58d3eb 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.

2 participants