On Fri, Jan 4, 2013 at 5:19 AM, JOSE MANUEL CANTERA FONSECA <[email protected]> wrote:
> El 04/01/13 04:29, "Jonas Sicking" <[email protected]> escribió:
>
>>The flow right now when developing mochitest for B2G is as follows:
>>
>>1. Write test
>>2. Run mochitest in simulator
>>3. See test failures
>>4. Edit test
>>5. Go back to step 2.
>>
>>The problem here is that step 2 takes a very long time. It requires
>>starting both gecko and the emulator.
>
> AFAIK, and concerning the Gaia unit tests, that is not needed if you start
> B2G with a debug profile which basically loads the Web resources through
> HTTP instead of the app:// package.

That might be true for Gaia unit tests. But it isn't currently true
for the mochitest test harness since there is no UI anywhere to
trigger a rerun of the test.

What we have done for now to work around this is to put a reload
button in the mochitest file itself.



>>As far as I understand it writing marionette tests have all the same
>>problems. And would meant that we couldn't reuse the tests for Fennec
>>and Desktop once these APIs work there too. Additionally marionette
>>tests require writing mixed javascript and python and generally
>>requires doing more complex things than mochitests currently do,
>>especially for platform developers who are mostly experienced in
>>javascript as well as the APIs they are testing. I'm definitely not
>>complaining about marionette. It's solving a much more complex set of
>>problems than mochitest is. But I don't think we can or should push
>>them as an alternative to mochitest.
>
> Probably I don't understand the problem as a whole but wouldn't be
> sufficient to have the capability to remotely dispatch events to the pages
> loaded in the phone, through a WebSocket to simulate user events?

I'm not sure I understand what you are proposing.

There is currently no problem with Marionette that I know of. Other
than the fact that it's B2G specific and I don't expect that we will
ever be able to use the marionette test harness to test desktop
builds. And it won't be able to run outside of an emulator with all
the downsides that that brings.

/ Jonas
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to