Closed Bug 1005296 Opened 11 years ago Closed 11 years ago

Add documentation for WebAPI tests

Categories

(Firefox OS Graveyard :: Certification Suite, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: wlach)

References

Details

Attachments

(1 file, 2 obsolete files)

We should have documentation for the individual webapi tests, with links to the webapi documentation on MDN and their source code. This should help with tracking down problems when they occur.
Attached patch WIP (needs more work) (obsolete) — Splinter Review
Assignee: nobody → wlachance
Comment on attachment 8416697 [details] [diff] [review] WIP (needs more work) Review of attachment 8416697 [details] [diff] [review]: ----------------------------------------------------------------- Does this look ok to you? We should unbitrot this if so.
Attachment #8416697 - Flags: feedback?(rwood)
Comment on attachment 8416697 [details] [diff] [review] WIP (needs more work) Review of attachment 8416697 [details] [diff] [review]: ----------------------------------------------------------------- Great thanks Will, I just used review to provide feedback... comments inline thanks ::: webapi_tests/fm_radio/__init__.py @@ +2,4 @@ > # License, v. 2.0. If a copy of the MPL was not distributed with this file, > # You can obtain one at http://mozilla.org/MPL/2.0/. > > +from test_fm_radio_basic import TestFMRadioBasic I don't really understand this change; in order for the tests to find the common code / methods in FMRadioTestCommon I need the "from fm_radio_test import FMRadioTestCommon" import... ::: webapi_tests/fm_radio/test_fm_radio_basic.py @@ +4,5 @@ > > import time > > +from webapi_tests.semiauto import TestCase > +from fm_radio_test import FMRadioTestCommon I don't understand why these changes... @@ +11,5 @@ > class TestFMRadioBasic(TestCase, FMRadioTestCommon): > + """ > + This tests basic functionality of the `WebFM API`_ > + > + .. _`WebFM API`: https://developer.mozilla.org/en-US/docs/WebAPI/WebFM_API It would be great if in the docs for each test, along with the web api under test, it also shows the methods and properties being tested in each test. Maybe keywords like this? .. _'Methods': mozFMRadio.enable, mozFMRadio.disable .. _'Properties': mozFMRadio.antennaAvailable, mozFMRadio.enabled (Not sure if I have the format correct) ::: webapi_tests/semiauto/testcase.py @@ +9,4 @@ > > from marionette import Marionette, MarionetteException > > +import environment Again not sure why this is being changed, it works as/is...
Attachment #8416697 - Flags: feedback?(rwood) → feedback+
Depends on: 1025292
Attached patch Updated patch (obsolete) — Splinter Review
Good news! With some of the recent work that went in, apparently we don't need to futz with imports and __init__'s to make this work. Note however that this functionality *does* depend on a virtualenv with all the certsuite's dependencies installed, which means we need bug 1025292 to land before this.
Attachment #8416697 - Attachment is obsolete: true
Attachment #8440119 - Flags: review?(rwood)
Attached patch Take 3Splinter Review
Forgot to add a file last time
Attachment #8440119 - Attachment is obsolete: true
Attachment #8440119 - Flags: review?(rwood)
Attachment #8440919 - Flags: review?(rwood)
Comment on attachment 8440919 [details] [diff] [review] Take 3 Generating the html docs worked great once I installed the sphinx module in my virtualenv. Thanks Will.
Attachment #8440919 - Flags: review?(rwood) → review+
Committed an updated version of the package with sphinx included in the deps list: https://github.com/mozilla-b2g/fxos-certsuite/commit/d4b75da327cdfa75f8f0a88a53d0b8e6591d0557 Will update readthedocs now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: