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)

defect

Tracking

()

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.

This blocks Phase 2 of Nimbus' implementation

Blocks: 1956082
See Also: → 1968071
Severity: -- → S3
Priority: -- → P2
Whiteboard: [fidefe-profile-management]
Assignee: nobody → jhirsch
No longer blocks: 1956082
See Also: → 1956082
Blocks: 1973306

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.