Closed Bug 1134791 Opened 9 years ago Closed 9 years ago

Testharness tests don't show their output in-browser even if you're only running one test

Categories

(Testing :: web-platform-tests, defect)

x86
macOS
defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: bzbarsky, Assigned: Ms2ger)

Details

Attachments

(1 file, 1 obsolete file)

This is about mochitest th tests, but ms2ger told me to file here....

Running a single mochitest normally lets you see in the browser which assertions failed, without having to grovel the log.  But th tests don't show anything at all in browser, even if you're running only one test.
Flags: needinfo?(Ms2ger)
Fix for non-mochitest case is in https://critic.hoppipolla.co.uk/r/4107
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Comment on attachment 8574715 [details] [diff] [review]
Show the testharness.js output when running a single mochitest

Isn't the test run in a suframe in mochitest even when running a single test?
Comment on attachment 8574715 [details] [diff] [review]
Show the testharness.js output when running a single mochitest

Applied the patch, ran:

  mach mochitest-plain dom/bindings/test/test_bug773326.html

and the output is not there.  So this doesn't work, afaict...

Fwiw, I checked and parent is the test harness <http://mochi.test:8888/tests/?stuff> while this is the actual subframe the test is loaded in.
Attachment #8574715 - Flags: review?(bzbarsky) → review-
Attachment #8574715 - Attachment is obsolete: true
Comment on attachment 8575912 [details] [diff] [review]
Show the testharness.js output when the browser remains open after running the test

Yes, much better!  Thank you!
Attachment #8575912 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/ac68ef5908dc
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Flags: needinfo?(Ms2ger)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: