In
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/test/marionette/sim_dialog_test.jsI
would like to use one of the 3 mocks for mozMobileConnection
https://github.com/mozilla-b2g/gaia/blob/master/shared/test/unit/mocks/mock_navigator_moz_mobile_connection.jspreferably

Currently to use mocks in integration tests they are required to be in /js/
and built as part of the standard profile, this mixes our testing only code
with real code and means unnecessary files are being included in the
default profile, there is also afaik no mechanism to access shared mocks

I figured 1. I might be wrong about some or all of what I have said, 2.
someone else might have hit and fixed this problem 3. at the least someone
with a better handle could suggest a clean way to handle this, the only
thing I can think of is to start building custom TEST=1 profiles that
automatically include all the shared mocks?

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

Reply via email to