I want to create a Firefox extension using c++ XPCOM component which in turn uses javascript XPCOM component. Is there any framework that allows test driven development of C++ XPCOM component/firefox extension ?
+3
A:
You could copy what Mozilla uses to test native code. You just have to make sure you link with libxul (which may require that you build Firefox).
An example file that uses TestHarness.h can be found here.
sdwilsh
2009-10-18 17:10:19
+2
A:
In addition to sdwilsh's suggestion, you could use another test framework mozilla uses - xpcshell tests. This is also the easiest to setup if you build Firefox.
Nickolay
2009-10-19 15:34:37