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

[Blazor] Hot reload testing improvements #59450

Open
javiercn opened this issue Dec 12, 2024 · 0 comments
Open

[Blazor] Hot reload testing improvements #59450

javiercn opened this issue Dec 12, 2024 · 0 comments
Labels
area-blazor Includes: Blazor, Razor Components feature-hot-reload This issue is related to the Hot Reload feaature

Comments

@javiercn
Copy link
Member

We have a long tail of hot reload issues that keep coming back up. As an effort to improve our team velocity we want to invest on some automation that allows us to validate a concrete set of scenarios on a regular basis. The goal of this automation is to act as a canary for when a new issue arises. We will run it on a daily basis as opposed to running it on every CI run.

The general structure for one of these tests is as follows:

  • Starts with a pre-configured existing project.
  • Runs dotnet watch or equivalent gesture.
  • Loads a page in the browser using Playwright.
  • Programmatically applies a change to one or more files (add a file, remove a file, edit its contents).
  • Perform any action if needed (like instructing the browser to navigate to a new location)
  • Validates that the changes have taken effect.

The list of scenarios is something that we will define, but includes things like:

  • Adding a new component
  • Adding a parameter to an existing component.
  • Modifying the generated UI code.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Dec 12, 2024
@javiercn javiercn added the feature-hot-reload This issue is related to the Hot Reload feaature label Dec 12, 2024
@javiercn javiercn added this to the .NET 10 Planning milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components feature-hot-reload This issue is related to the Hot Reload feaature
Projects
None yet
Development

No branches or pull requests

1 participant