W3C home > Mailing lists > Public > public-device-apis@w3.org > April 2010

Re: A Proposal for the Testing Framework

From: Anssi Kostiainen <anssi.kostiainen@nokia.com>
Date: Fri, 30 Apr 2010 11:14:13 +0300
Message-Id: <74D29805-82D8-4A5D-BB8B-67F10D67359D@nokia.com>
To: ext Kai Hendry <hendry@aplix.co.jp>, Brian LeRoux <brian@westcoastlogic.com>, "public-device-apis@w3.org WG" <public-device-apis@w3.org>

On 29.4.2010, at 21.53, ext Kai Hendry wrote:

> On 29 April 2010 19:40, Brian LeRoux <brian@westcoastlogic.com> wrote:
>> +1 for qUnit. We use it for the mobile-spec for phonegap and it runs
>> perfectly on all mobile devices which is a huge bonus.
> +1 for Qunit, though it does not work on WinMo 6.1 on which the BONDI
> ri is based.
> This is why my colleague wrote runner.js for OMTP BONDI:
> http://bondidev.omtp.org/BWiki/BONDI%20Compliance.aspx

QUnit seems like a reasonable choice for unit testing given that the PhoneGap folks have already validated its applicability across major mobile OSs (Brian: any problems so far, also did you evaluate others such as JsUnit, YUITest..?). Mobile-spec also has some tests that may be re-usable to some extend, which is nice.

About the scope. Unit testing only covers headless APIs (input/output, functions, events) and not UI interactions (e.g. file picker interactions in the Media Capture API). Are we happy leaving functional testing out of the scope for now? AFAIK there are no mobile friendly functional testing tools available and I assume we don't want to roll our own -- especially given that such tools tend to be browser/platform specific. Selenium seems to be the most popular in the desktop space, but that may not help us much here. 

Kai - The WinMo 6.1 QUnit incompatibility may have been due to jQuery? Nowadays QUnit is a standalone test runner i.e. the dependency on jQuery was removed [2]. Which version did you evaluate?


[1] http://github.com/phonegap/mobile-spec/tree/master/tests/
[2] http://github.com/jquery/qunit/commit/c15c735605258c3756037e9b85e873d54bc29a85
Received on Friday, 30 April 2010 08:14:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:19 UTC