Open
Bug 1968069
Opened 1 year ago
Updated 8 months ago
Improve testing story for SelectableProfileService and ProfilesDatastoreService
Categories
(Toolkit :: Startup and Profile System, defect, P2)
Toolkit
Startup and Profile System
Tracking
()
NEW
People
(Reporter: beth, Assigned: jhirsch)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [fidefe-profile-management])
Its quite intrusive to use the SelectableProfileService or ProfilesDatastoreService in xpcshell tests outside of the directory it lives in. See this patch as an example -- you have to change the head.js to require multiple head files from across the tree.
It would be nice we could have some sort of ProfileTestUtils exposed under testing-common that gathered up the required bootstrapping into an importable module so it was easier to use across the tree -- or add something like do_get_profile() to testing/xpcshell/head.js so any test can use the helper immediately.
| Assignee | ||
Updated•1 year ago
|
Priority: -- → P2
Whiteboard: [fidefe-profile-management]
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → jhirsch
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 2•8 months ago
|
||
Adding a reference to bug 2015218, where we see this creeping into an xpcshell.toml yet again:
head = "../../../../../toolkit/profile/test/xpcshell/head.js ../../../profiles/tests/unit/head.js head.js"
See Also: → 2015218
You need to log in
before you can comment on or make changes to this bug.
Description
•