W3C home > Mailing lists > Public > public-test-infra@w3.org > January to March 2015

Using WPT as unit tests for polyfill libraries?

From: Glen Huang <curvedmark@gmail.com>
Date: Tue, 17 Feb 2015 15:54:40 +0800
Message-Id: <54C6EF93-3633-4393-B11B-7700F9DEBECB@gmail.com>
To: public-test-infra@w3.org

I’m writing a polyfill library that would like to use Web Platform Tests as unit tests, but I encounter a few obstacles:

- How to automate the tests in multiple browsers? More specifically, is it possible to integrate WPT into, say, saucelabs?
- Some tests are just too edge-case (e.g., toString(Event) should equal "[object Function]” or class=“name name” should only return one class name) to be covered by a polyfill library. Is it possible to cherry-pick tests without forking the project?

Or is WPT never meant to be used as unit tests for other libraries, and I’m looking at the wrong project?

Received on Tuesday, 17 February 2015 07:55:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:34:11 UTC