Closed
Bug 1275288
Opened 9 years ago
Closed 9 years ago
Add harness unit tests for exceptions raised by _load_testvars
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox49 fixed)
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: vakila, Assigned: vakila)
Details
(Keywords: pi-marionette-harness-tests)
Attachments
(1 file)
Test that MarionetteTestRunner._load_testvars raises
the expected exceptions when testvars filepaths are
nonexistent or have improperly formatted JSON data
Assignee | ||
Comment 1•9 years ago
|
||
Test that MarionetteTestRunner._load_testvars raises
the expected exceptions when testvars filepaths are
nonexistent or have improperly formatted JSON data
Review commit: https://reviewboard.mozilla.org/r/54900/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/54900/
Attachment #8755958 -
Flags: review?(mjzffr)
Assignee | ||
Comment 2•9 years ago
|
||
Maja, per your comment on Bug 1275269, I'll remove the comments from this patch as they're rather redundant. I'll just wait for your review in case anything else needs to be changed.
Attachment #8755958 -
Flags: review?(mjzffr)
Comment on attachment 8755958 [details]
MozReview Request: Bug 1275288 - Test exception raising in _load_testvars; r?maja_zf
https://reviewboard.mozilla.org/r/54900/#review51594
Looks good.
::: testing/marionette/harness/marionette/tests/harness_unit/test_marionette_runner.py:291
(Diff revision 1)
> assert runner.record_crash() == has_crashed
> _check_crash_counts(has_crashed, runner, runner.marionette)
>
>
> +def test_load_testvars_throws_expected_errors(mach_parsed_kwargs):
> + mach_parsed_kwargs
Extra line to be deleted?
nit: Please also move your new test to be next to the other "test_vars" test in the module. (Aside: we'll probably want to reorganize these tests eventually to not all be in one module. We can revisit that in the future.)
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8755958 [details]
MozReview Request: Bug 1275288 - Test exception raising in _load_testvars; r?maja_zf
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/54900/diff/1-2/
Attachment #8755958 -
Flags: review?(mjzffr)
Comment on attachment 8755958 [details]
MozReview Request: Bug 1275288 - Test exception raising in _load_testvars; r?maja_zf
https://reviewboard.mozilla.org/r/54900/#review51752
Great!
Attachment #8755958 -
Flags: review?(mjzffr) → review+
Comment 7•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Keywords: ateam-marionette-harness-tests
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•