rhino-unit

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

可紊 提交于 2019-12-03 12:57:40
问题 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

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

强颜欢笑 提交于 2019-12-03 03:16:52
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? You