I think TestCase and qmltestrunner is way to go. What we have done in calculator team is nice but using TestCase is simply better way to do that. I discourage copying what we have done in calculator team (it works but let's stick to standard way).
Regards, Dalius On Mon, Feb 18, 2013 at 3:45 AM, Sam Spilsbury <smspil...@gmail.com> wrote: > On Sun, Feb 17, 2013 at 10:36 PM, Andrew Flegg <and...@bleb.org> wrote: > > Hi, > > > > Where possible it'd be good to use TDD in the development of the core > > apps to prevent regressions and ensure edge cases are properly tested. > > > > The Qt Project's page on unit testing is very focused on C++[1], are > > there any good patterns and/or the ability to test with JS? Where > > should tests be located in the projects? > > Hi, > > Poking around lp:ubuntu-ui-toolkit, I saw this: > > http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/files/head:/tests/unit/ > > Seems like there's a QML container called "TestCase" for handling this > kind of thing. See > http://doc-snapshot.qt-project.org/5.0/qtquick/qml-testcase.html > > Best, > > Sam > > > > > Cheers, > > > > Andrew > > > > [1] http://qt-project.org/wiki/Writing_Unit_Tests > > > > -- > > Andrew Flegg -- mailto:and...@bleb.org | http://www.bleb.org/ > > > > -- > > Mailing list: https://launchpad.net/~ubuntu-phone > > Post to : ubuntu-phone@lists.launchpad.net > > Unsubscribe : https://launchpad.net/~ubuntu-phone > > More help : https://help.launchpad.net/ListHelp > > > > -- > Sam Spilsbury > > -- > Mailing list: https://launchpad.net/~ubuntu-phone > Post to : ubuntu-phone@lists.launchpad.net > Unsubscribe : https://launchpad.net/~ubuntu-phone > More help : https://help.launchpad.net/ListHelp >
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp