tags:

views:

215

answers:

2

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
+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