Provide add_setup which interacts correctly with `.only` and `.skip` in xpcshell tests
Categories
(Testing :: XPCShell Harness, defect, P3)
Tracking
(firefox99 fixed)
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
+++ This bug was initially created as a clone of Bug #1720335 +++
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.
bug 1720335 did this for browser mochitests; let's do the same for xpcshell.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Comment 3•3 years ago
|
||
bugherder |
Comment 4•3 years ago
|
||
I just discovered that multiple add_setup
invocations execute in reverse order. That is:
add_setup(a);
add_setup(b);
invokes as b(); a()
. That surprised me. Should we either disallow multiple add_setup
calls, or fix the ordering (and test that it stays consistent)?
Assignee | ||
Comment 5•3 years ago
|
||
(In reply to Nick Alexander :nalexander [he/him] from comment #4)
I just discovered that multiple
add_setup
invocations execute in reverse order. That is:add_setup(a); add_setup(b);
invokes as
b(); a()
. That surprised me. Should we either disallow multipleadd_setup
calls, or fix the ordering (and test that it stays consistent)?
We should fix the ordering. Please file a follow-up.
Is this happening for xpcshell, for browser mochitests, or both? (The implementations are different 😭)
Comment 6•3 years ago
|
||
(In reply to :Gijs (he/him) from comment #5)
(In reply to Nick Alexander :nalexander [he/him] from comment #4)
I just discovered that multiple
add_setup
invocations execute in reverse order. That is:add_setup(a); add_setup(b);
invokes as
b(); a()
. That surprised me. Should we either disallow multipleadd_setup
calls, or fix the ordering (and test that it stays consistent)?We should fix the ordering. Please file a follow-up.
Is this happening for xpcshell, for browser mochitests, or both? (The implementations are different 😭)
Filed and fixed by :gijs. Huzzah!
Description
•