Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Currently, we treat every .html file in tests/wpt as-if it's a test. That isn't always the case. wpt has a manifest tool to generate a manifest (in JSON) of the tests, we should probably use that (but it's quite large).

This PR filters out two groups. First, everything in resources/ appears to be things to run the tests, not actual tests.

Second, any file without a "testharness.js" doesn't appear to be a test either. Note that WPT's own manifest generator looks at this: https://github.com/web-platform-tests/wpt/blob/43a06153617aa58f877f9e5873c0a02290b1c2a8/tools/manifest/sourcefile.py#L676 (which is used later in the file to determine the type of file).

Currently, we treat every .html file in tests/wpt as-if it's a test. That
isn't always the case. wpt has a manifest tool to generate a manifest (in
JSON) of the tests, we should probably use that (but it's quite large).

This PR filters out two groups. First, everything in resources/ appears to
be things to _run_ the tests, not actual tests.

Second, any file without a "testharness.js" doesn't appear to be a test
either. Note that WPT's own manifest generator looks at this:
https://github.com/web-platform-tests/wpt/blob/43a06153617aa58f877f9e5873c0a02290b1c2a8/tools/manifest/sourcefile.py#L676
(which is used later in the file to determine the type of file).
@krichprollsch krichprollsch merged commit faf9344 into main Apr 22, 2025
12 checks passed
@krichprollsch krichprollsch deleted the wpt_filter_non_tests branch April 22, 2025 15:00
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 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