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

Testing perf improvements for e2e tests #4354

Merged
merged 4 commits into from
Aug 17, 2022
Merged

Testing perf improvements for e2e tests #4354

merged 4 commits into from
Aug 17, 2022

Conversation

tony-sull
Copy link
Contributor

@tony-sull tony-sull commented Aug 16, 2022

Changes

Fixes a bug that was causing E2E tests to restart the dev server for every single test case

Future improvements - synchronization on HMR tests seem to be flaky on Windows, need to investigate what could be breaking the editFile synchronization only for Windows tests

Testing

All existing tests should pass...faster

Docs

Test updates only

@changeset-bot
Copy link

changeset-bot bot commented Aug 16, 2022

⚠️ No Changeset found

Latest commit: e550286

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Aug 16, 2022
@tony-sull tony-sull changed the title WIP: Testing perf improvements for e2e tests Testing perf improvements for e2e tests Aug 17, 2022
@tony-sull tony-sull marked this pull request as ready for review August 17, 2022 18:58
Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

YES. Extremely approved.

@@ -18,7 +18,7 @@ export function testFactory(inlineConfig) {

const test = testBase.extend({
astro: async ({}, use) => {
fixture = await loadFixture(inlineConfig);
fixture = fixture || await loadFixture(inlineConfig);
Copy link
Member

Choose a reason for hiding this comment

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

That's it? Amazing!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the one! Test suites using beforeAll for firing up the dev server also helps speed up suites a bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants