Closed Bug 1606834 Opened 4 years ago Closed 4 years ago

Document fit/fdescribe for Puppeteer tests

Categories

(Remote Protocol :: Agent, task, P1)

task

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: ato, Assigned: ato)

Details

(Whiteboard: [puppeteer-beta-mvp])

Attachments

(1 file)

I learned today that it() functions can be replaced with fit(), and describe() with fdescribe() to select which tests to run. This is missing from our Puppeteer test documentation.

Priority: -- → P3
Whiteboard: [puppeteer-beta-reserve]

More documentation on mocha:
https://mochajs.org/index.html

Assignee: nobody → ato
Status: NEW → ASSIGNED
Priority: P3 → P1

We were lacking documentation on how to run inidividual Puppeteer
tests. It turns out this is not possible yet to do on a per-file
basis, like other test harnesses.

Instead, suggest use of fdescribe()/fit() and recommend some useful
Mocha flags.

Whiteboard: [puppeteer-beta-reserve] → [puppeteer-beta-mvp]
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6c6336d7656d
remote: document fdescribe(), fit(), and Mocha flags r=remote-protocol-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: