Closed Bug 1177782 Opened 9 years ago Closed 9 years ago

Take a screenshot after all mochitest failures

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(firefox42 fixed)

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: RyanVM, Assigned: jgriffin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In our intermittent orange discussion today, the idea of taking screenshots after all test failures was raised. We currently only take them after a timeout, but state can be helpful for regular failures as well.
I guess bug 711124 is about the regular failures.
I think we wired the plumbing up for this ages ago, shouldn't be hard to turn on.
Yeah, we have --screenshot-on-fail.. I haven't used it before, so not sure how well it works, but might just be a matter of adding it to the in-tree configs.
Above might be all we need, I'd like to see it working across all the platforms first.. here's a try run:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bb42ee341afc
Comment on attachment 8626630 [details]
MozReview Request: Bug 1177782 - Enable --screenshot-on-fail for mochitests

Bug 1177782 - Enable --screenshot-on-fail for mochitests
Attachment #8626630 - Flags: review?(jgriffin)
The try run looks good. I'm going to be PTO all next week, so assuming r+ if someone could land or set checkin-needed that would be appreciated. Otherwise I'll do it when I get back.
Comment on attachment 8626630 [details]
MozReview Request: Bug 1177782 - Enable --screenshot-on-fail for mochitests

https://reviewboard.mozilla.org/r/12109/#review10691

Looks good.  This is a no-op for Android emulator tests, looking at the try run, and probably for B2G emulator tests as well, but we can address those with follow-ups.
Attachment #8626630 - Flags: review?(jgriffin) → review+
Blocks: 1178554
https://hg.mozilla.org/mozilla-central/rev/ec2988092893
Assignee: nobody → jgriffin
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: