Search completed in 1.24 seconds.
How to add a build-time test
e we've set this up - see bug 352240 for status). For example, to add an xpcshell test to a module, do the following: Copy tools/test-harness/xpcshell-simple/example to yourmoduledir/tests_type, wheretests_type is something that describes your tests. You can of course use unit or test if you're not feeling creative. In <tt>yourmoduledir/tests_type/Makefile.in</tt> change DEPTH, MODULE, and
XPCSHELL_TESTS appropriately: DEPTH should be a relative path pointing to <tt>mozilla/</tt>, e.g. if you're in <tt>netwerk/test</tt>, set DEPTH = ../.. MODULE should be defined to test_yourmodule or just yourmodule -- either will work fine.
XPCSHELL_TESTS be a list of subdirectories of the current directory which contain xpcshell tests. You can of course just use the onetests_type directory here, bu...