Closed Bug 1720335 Opened 4 years ago Closed 3 years ago

Add setup abstraction that interacts correctly with `.only` and `.skip`

Categories

(Testing :: Mochitest, defect, P3)

Default
Desktop
All
defect

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Although we have registerCleanupFunction, we do not have an equivalent for test setup.

Right now .only() doesn't always work right, because it doesn't take into account setup tasks as, well, required setup.

If we had appropriate setup functions, this would work right.

We could automatically transform the thousand+ "setup" functions that are in the tree already using eslint.

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Blocks: 1753696
Summary: Add setup abstraction that interacts correctly with `.only` and `.skip`, and use lint rule to transform existing setup methods → Add setup abstraction that interacts correctly with `.only` and `.skip`
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Regressions: 1753963
Blocks: 1755159
Blocks: 1757040
Depends on: 1938971
See Also: → 1957513
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: