Auto-tools/Projects/web-platform-tests: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Add difficulty:easy links)
(Add more motivation for web-platform-tests.)
Line 3: Line 3:
web-platform-tests is a testsuite designed for cross-browser testing of web features like CSS and DOM APIs.
web-platform-tests is a testsuite designed for cross-browser testing of web features like CSS and DOM APIs.


The aim of this project is to allow us to run the full set of web-platform-tests in gecko, and create an easy workflow for contributing back to the upstream.
Creating, and running, such a testsuite is a crucial part of improving the open web. Whenever a technology has multiple implementations it's very easy to introduce accidental discrepancies that cause poor interoperability. Historically this has been a problem on the web with different browsers all having their own quirks that developers have had to learn and work around. By contributing to the web-platform-tests testsuite we can build up a repository of test cases that can be run by all browser vendors through their development cycle so such issues are caught before they make it into released builds.
 
The aim of this project is to allow us to run the full set of web-platform-tests in Gecko and Servo, and create an easy workflow for contributing tests back upstream.


= Source and Documentation =
= Source and Documentation =

Revision as of 19:12, 12 January 2015

Overview

web-platform-tests is a testsuite designed for cross-browser testing of web features like CSS and DOM APIs.

Creating, and running, such a testsuite is a crucial part of improving the open web. Whenever a technology has multiple implementations it's very easy to introduce accidental discrepancies that cause poor interoperability. Historically this has been a problem on the web with different browsers all having their own quirks that developers have had to learn and work around. By contributing to the web-platform-tests testsuite we can build up a repository of test cases that can be run by all browser vendors through their development cycle so such issues are caught before they make it into released builds.

The aim of this project is to allow us to run the full set of web-platform-tests in Gecko and Servo, and create an easy workflow for contributing tests back upstream.

Source and Documentation

The overall web-platform-tests project is hosted on github and documented at testthewebforward.org. This site contains notes on how to run and write tests.

The tool we use for running the tests is wptrunner, which is documented on readthedocs.

The tests use a custom web server, wptserve, which also has documentation on readthedocs.

Gecko-specific integration lives in-tree and is documented in some README files.

Future Project Goals

  • Improved support for upstreaming tests from gecko directly into the upstream repository.
  • Support reliable testing in automation for debug builds.
  • Allow running CSS tests using wptrunner.
  • More sophisticated reftest matching for cases where deterministic pixel equality isn't achievable.

Bugs

Because a lot of the project is developed "upstream" on GitHub, not all of the bugs are in bugzilla.mozilla.org.

Good First Bugs

These tend to be labeled with difficulty:easy on GitHub:

Full Bug Lists