Closed
Bug 1219694
Opened 9 years ago
Closed 9 years ago
Implement *test_inter_app_comm.py* as an integration test in JavaScript
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(feature-b2g:2.6+)
RESOLVED
WONTFIX
feature-b2g | 2.6+ |
People
(Reporter: whsu, Unassigned)
References
Details
(Whiteboard: [gip-to-gij])
Reporter | ||
Updated•9 years ago
|
Component: Gaia::UI Tests → Gaia::System
Updated•9 years ago
|
feature-b2g: --- → 2.6+
Comment 1•9 years ago
|
||
We use IAC extensively in our rocketbar and search app tests. I don't think we need to test the bare bones IAC functionality independently because those aforementioned tests would fail if IAC stopped working to spec.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 2•9 years ago
|
||
Thanks for the explanation. Having an integration test for IAC might, indeed, sound like wearing belt and suspenders. On the other hand, what would happened if one day the rocketbar and the search app don't use IAC anymore? Do you think having IAC-specific integration tests can help to make sure this feature is covered?
Flags: needinfo?(mhenretty)
Comment 3•9 years ago
|
||
(In reply to Johan Lorenzo [:jlorenzo] (QA) from comment #2)
> On the other hand, what
> would happened if one day the rocketbar and the search app don't use IAC
> anymore? Do you think having IAC-specific integration tests can help to make
> sure this feature is covered?
I see your point, here's my take: For making sure an API has test coverage, this is the responsibility of the platform. And indeed there are tests that cover IAC in gecko ([1] for instance). Integration tests in Gaia are not for covering APIs specifically (otherwise we'd need *a lot* more tests here), but rather to test UI interactions in Firefox OS. So instead of having tests for, say navigator.mozApps.mgmt.getAll(), we have integration tests against the app update flow, or in the homescreen to make sure all the icons show up. On the flip side, if we get to the point where no features in Gaia use IAC, there is no point to having the IAC bare bones test. So let's use Gij to test features, not APIs.
1.) https://mxr.mozilla.org/mozilla-central/source/dom/apps/tests/unit/test_inter_app_comm_service.js
Flags: needinfo?(mhenretty)
Comment 4•9 years ago
|
||
Makes sense. Thanks again for the details
Closing as WONTFIX because no Gij equivalent will be implemented.
Resolution: FIXED → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•