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

Add WPT as optional tests for boa_runtime #4008

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Sep 26, 2024

To run the tests, you require adding the wpt-tests feature and setting the WPT_ROOT environment variable on the command line. This is currently depending on a pending rstest PR: la10736/rstest#277

Example:

WPT_ROOT=$HOME/Sources/hansl/wpt cargo test -p boa_runtime --features "wpt-tests"

The current set of curated tests are all working.

This will be considered a draft until Boa's URL PR (#4004) is merged. Might also need to add support for more encoding types in TextEncoder/TextDecoder.

Some methods are NOT currently supported (some don' make sense
outside of a browser context). They are still implemented but
will throw a JavaScript Error.

Supported methods should follow the specification perfectly.
To run the tests, you require adding the `wpt-tests` feature
and setting the `WPT_ROOT` environment variable on the
command line. This is currently depending on a pending rstest
PR: la10736/rstest#277

The current set of curated tests are all working.
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 36.50794% with 40 lines in your changes missing coverage. Please review.

Project coverage is 52.82%. Comparing base (6ddc2b4) to head (9e9a37c).
Report is 269 commits behind head on main.

Files with missing lines Patch % Lines
core/runtime/src/url.rs 38.88% 22 Missing ⚠️
core/runtime/src/console/mod.rs 25.00% 6 Missing ⚠️
core/string/src/lib.rs 0.00% 5 Missing ⚠️
core/runtime/src/lib.rs 70.00% 3 Missing ⚠️
core/runtime/tests/wpt.rs 0.00% 3 Missing ⚠️
cli/src/main.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4008      +/-   ##
==========================================
+ Coverage   47.24%   52.82%   +5.58%     
==========================================
  Files         476      483       +7     
  Lines       46892    46731     -161     
==========================================
+ Hits        22154    24686    +2532     
+ Misses      24738    22045    -2693     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant