If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Unit tests for extension manager

RESOLVED WONTFIX

Status

()

Toolkit
Add-ons Manager
RESOLVED WONTFIX
10 years ago
9 years ago

People

(Reporter: mossop, Assigned: mossop)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

10 years ago
I want to do a review of the EM and see what functions we can hit with the new unit testing framework. Most of this will be unrelated to other particular bugs.

Comment 1

10 years ago
I think this will be somewhat difficult with the current tools.

I posted a script (https://bugzilla.mozilla.org/show_bug.cgi?id=390971) that uses leak-gauge.pl to do leak testing. The thing that is different about it, though, is that I have an extension which quits the browser when the first page finishes loading. So, I can run automated tests that do something like:

- launch FF for some URL
- FF launches, loads and quits
- launch FF for some other URL
- FF launches, loads and quits

and so on.

I have been thinking of doing extension testing with this. Such as:

- create profile A with some set of extensions
- launch FF pointing to that profile
- run some tests
- create profile B with some set of extensions
- launch FF pointing to that profile
- run some tests
and so on.

This should be a useful way to test the extension manager itself. Have you set up any of the code to do this yet?
(Assignee)

Comment 2

10 years ago
Unit testing of the extension manager component is already possible using the test harness implemented in bug 382752 which allows exactly the type of testing you describe.

Comment 3

10 years ago
Very cool. You guys have it all covered then! :-)
Product: Firefox → Toolkit
(Assignee)

Comment 4

9 years ago
Not really getting time to build up the test suite except as bugs are fixes but that is giving us some good coverage anyway so closing this down.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.