简体   繁体   中英

Unit test a firefox extension?

I'm working on a Firefox extension and started building automated tests using jsUnit. I run into permission errors running the tests from the TestRunner as soon as my extension code refers to any XPCom components.

Is there a better tool for me to use for this, or how I can get around the permissions issues and continue to use jsUnit?

I haven't started using it yet, but UxU appears to be a really good tool for unit testing Firefox extensions. I don't know how well it can deal with XPCOM, but I believe it runs the tests from a context where it has the permissions it needs for that sort of thing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM