Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running unit tests of JavaScript code from XUL - what and how

I am writing an XUL application. It is not a Firefox extension but a standalone app to be used through XULrunner. My intention is to adopt TDD in my development process and I am looking at RhinoUnit as my unit testing framework. I will try to use it anyway but there is not much documentation about testing XUL applications. Some people talk about using UxU - but only for Firefox addons - and Mochitest - if you want to test Mozilla only.

My question is: has someone written some XUL application with unit tests? What tool did you use and, if it is someone I have mentioned, how did you use it?

like image 708
brandizzi Avatar asked Jul 23 '11 01:07

brandizzi


1 Answers

You could try to have a look at Mozmill. It is an addon that can be used for testing all Gecko based applications.
You can use it to test UI interface of your application.
The documentation is quite ok and if you have any question you can try the dedicated mailing list.

like image 123
F-A Avatar answered Nov 14 '22 23:11

F-A