Unit test Firefox extension?

I am working on a Firefox extension and started creating automated tests using jsUnit. I am facing permission errors that run TestRunner tests as soon as my extension code references any XPCom components.

Is there a better tool to use by me for this, or how can I get around permission problems and keep using jsUnit?

+3
source share
1 answer

I haven't started using it yet, but UxU seems like a really good tool for unit testing Firefox extensions. I do not know how well it can work with XPCOM, but I believe that it runs tests from a context where it has the permissions necessary for this kind of thing.

+1
source

Source: https://habr.com/ru/post/1752303/


All Articles