-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
base: main
Are you sure you want to change the base?
Conversation
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.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4008 +/- ##
==========================================
+ Coverage 47.24% 53.79% +6.55%
==========================================
Files 476 486 +10
Lines 46892 48398 +1506
==========================================
+ Hits 22154 26037 +3883
+ Misses 24738 22361 -2377 ☔ View full report in Codecov by Sentry. |
core/runtime/Cargo.toml
Outdated
wpt-tests = [] | ||
# This feature is used to disable compiling the WPT tests in the CI | ||
# when using `--all-features`. If this feature is enabled, we disable | ||
# the compilation of the WPT tests (since they will panic). | ||
# Clippy will be disabled for those methods as well, but they're one | ||
# line long. | ||
wpt-tests-do-not-use = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I think it's slightly weird to have tests be enabled by features instead of by only the test
cfg. Can we just have a separate crate in the workspace for wpt tests, just like boa_tester
? We could also potentially merge them together in the future.
To run the tests, you require adding the
wpt-tests
feature and setting theWPT_ROOT
environment variable on the command line.Example:
The current set of curated tests are all working. Some tests have been marked as ignore with a TODO for further work.