Closed Bug 393383 Opened 17 years ago Closed 16 years ago

Unit tests for extension manager

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mossop, Assigned: mossop)

Details

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.
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?
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.
Very cool. You guys have it all covered then! :-)
Product: Firefox → Toolkit
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
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.