The web-platform-tests Project ============================== The web-platform-tests Project is a cross-browser test suite for the Web-platform stack. Writing tests in a way that allows them to be run in all browsers…
The web-platform-tests Project
==============================
   
The web-platform-tests Project is a cross-browser test suite for the
Web-platform stack. Writing tests in a way that allows them to be run in all
browsers gives browser projects confidence that they are shipping software that
is compatible with other implementations, and that later implementations will
be compatible with their implementations. This in turn gives Web
authors/developers confidence that they can actually rely on the Web platform
to deliver on the promise of working across browsers and devices without
needing extra layers of abstraction to paper over the gaps left by
specification editors and implementors.
The most important sources of information and activity are:
the canonical location of the project's source code revision history and the discussion forum for changes to the code- web-platform-tests.org: the documentation
- wpt.live: a public deployment of the test suite,
- wpt.fyi: an archive of test results collected from an
- Real-time chat room: the
wpt:matrix.org matrix channel; includes participants located
around the world, but busiest during the European working day.
- Mailing list: a
- RFCs: a repo for requesting
If you'd like clarification about anything, don't hesitate to ask in the
chat room or on the mailing list.
Setting Up the Repo
===================
Clone or otherwise get https://github.com/web-platform-tests/wpt.
Note: because of the frequent creation and deletion of branches in this
repo, it is recommended to "prune" stale branches when fetching updates,
i.e. use git pull --prune (or git fetch -p && git merge).
Running the Tests
=================
See the documentation website
and in particular the
system setup for running tests locally.
Command Line Tools
==================
The wpt command provides a frontend to a variety of tools for
working with and running web-platform-tests. Some of the most useful
commands are:
wpt serve- For starting the wpt http serverwpt run- For running tests in a browserwpt lint- For running the lint against all testswpt manifest- For updating or generating aMANIFEST.jsontest manifestwpt install- For installing the latest release of a browser or
wpt serve-wave- For starting the wpt http server and the WAVE test runner.
Windows Notes
=============================================
On Windows wpt commands must be prefixed with python or the path
to the python binary (if python is not in your %PATH%).
bash
python wpt [command]
Alternatively, you may also use
Bash on Ubuntu on Windows
in the Windows 10 Anniversary Update build, then access your windows
partition from there to launch wpt commands.
Please make sure git and your text editor do not automatically convert
line endings, as it will cause lint errors. For git, please setgit config core.autocrlf false in your working tree.
Publication
===========
The master branch is automatically synced to wpt.live and
w3c-test.org.
Contributing
============
Save the Web, Write Some Tests!
Absolutely everyone is welcome to contribute to test development. No
test is too small or too simple, especially if it corresponds to
something for which you've noted an interoperability bug in a browser.
The way to contribute is just as usual:
- Fork this repository (and make sure you're still relatively in sync
- Create a branch for your changes:
git checkout -b topic.
- Make your changes.
- Run
./wpt lintas described above. - Commit locally and push that to your repo.
- Create a pull request based on the above.
If you spot an issue with a test and are not comfortable providing a
pull request per above to fix it, please
file a new issue.
Thank you!
Members
-
wpt ★ PINNED
Test suites for Web platform specs — including WHATWG, W3C, and others
HTML ★ 6.0k 3h agoExplain → -
rfcs ★ PINNED
web-platform-tests RFCs
★ 105 6d agoExplain → -
interop ★ PINNED
web-platform-tests Interop project
JavaScript ★ 499 2mo agoExplain → -
wpt.fyi ★ PINNED
web-platform-tests dashboard
Go ★ 236 3h agoExplain → -
interop-2022-viewport
Viewport investigation project, part of Interop 2022
★ 65 3mo agoExplain → -
interop-accessibility
Accessibility Testing for WPT
★ 55 2mo agoExplain → -
wpt-metadata
Out-of-tree metadata for wpt
Go ★ 46 46m agoExplain → -
results-collection ▣
No description.
Python ★ 43 6y agoExplain → -
wpt-pr-bot
Home of the wpt-pr-bot
JavaScript ★ 38 2mo agoExplain → -
results-analysis
Metrics generation for wpt.fyi
JavaScript ★ 32 12h agoExplain → -
wpt.live
A live version of the web-platform-tests project
HCL ★ 20 2mo agoExplain → -
editor
A repo for helping author/edit tests for WPT
JavaScript ★ 13 1y agoExplain → -
interop-mobile-testing
Mobile Testing Investigation in Interop 2023–2025
★ 9 3mo agoExplain → -
interop-jpegxl
Interop 2026 JPEG XL Investigation
★ 8 22d agoExplain → -
data-migration
Some temporary scripts for ad-hoc data migration/fixup
Go ★ 8 1y agoExplain → -
results-analysis-cache
Storage for https://github.com/web-platform-tests/results-analysis
★ 7 4h agoExplain → -
wpt-actions-test ▣
Testing actions pipeline changes
HTML ★ 7 5y agoExplain → -
pulls.web-platform-tests.org ▣
[Deprecated] Some functionalities are now provided by wpt-pr-bot https://github.com/web-platform-tests/wpt-pr-bot
Python ★ 7 7y agoExplain → -
interop-2022-pointer
No description.
★ 4 3y agoExplain → -
interop-privacy
Privacy Testing for WPT
★ 3 1y agoExplain → -
wpt-notes
Minutes from wpt infra meetings
★ 3 1y agoExplain → -
interop-2022-editing
Work on the editing investigation for Interop 2022
★ 3 3y agoExplain → -
interop-webvtt
Interop 2025 WebVTT
★ 2 1d agoExplain → -
interop-gamepad
Gamepad API testing, part of Interop 2025
HTML ★ 2 7mo agoExplain → -
interop-2024-wasm
Interop 2024 Web Assembly Investigation
★ 0 2y agoExplain →
No repos match these filters.