Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Removes the optional Platform from the App and makes the App own the Platform.

This only existed as-is so that a handful of test would be easier to setup by not having to create a Platform. But I've introduced a global test_app which is fully setup and can be re-used (e.g. telemetry tests needs an app, and can now use test_app).

Mostly just some prep work for trying to add some WPT-style tests.

Removes optional platform, which only existed for tests.

There is now a global `@import("testing.zig").test_app` available. This is setup
when the test runner starts, and cleaned up at the end of tests. Individual
tests don't have to worry about creating app, which I assume was the reason I
Platform optional, since that woul dhave been something else that needed to be
setup.
Exists for cleaning up after tests.
@karlseguin karlseguin merged commit 94960cc into main Aug 29, 2025
10 checks passed
@karlseguin karlseguin deleted the app_owns_platform branch August 29, 2025 02:33
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants