canmove, Confirmed users
1,570
edits
No edit summary |
(Update about test manifests) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 12: | Line 12: | ||
From the source directory or object directory run: | From the source directory or object directory run: | ||
mach | mach mochitest addon-sdk/source | ||
You can also run specific tests like so: | |||
mach mochitest addon-sdk/source/test/test-sandbox.js | |||
or possibly even: | |||
mach mochitest test-sandbox.js | |||
if the name doesn't collide with any other tests. | |||
=== Running with make === | |||
Don't. | |||
== Disabling tests == | |||
Tests can be disabled using the regular mochitest ini manifest. See [https://dxr.mozilla.org/mozilla-central/source/addon-sdk/source/test/jetpack-package.ini jetpack-package.ini] and [https://dxr.mozilla.org/mozilla-central/source/addon-sdk/source/test/addons/jetpack-addon.ini jetpack-addon.ini]. | |||
== Running tests from the SDK repository == | == Running tests from the SDK repository == | ||
| Line 84: | Line 81: | ||
/me/me2B1lFDE0WZCgd33s2OTE+++TU/-Tmp-/tmp72nW_f.mozrunner -foreground -no-remote | /me/me2B1lFDE0WZCgd33s2OTE+++TU/-Tmp-/tmp72nW_f.mozrunner -foreground -no-remote | ||
You can then run the debugger using that command. | You can then run the debugger using that command: | ||
gdb --args /Applications/Firefox.app/Contents/MacOS/firefox-bin -profile /var/folder | |||
/me/me2B1lFDE0WZCgd33s2OTE+++TU/-Tmp-/tmp72nW_f.mozrunner -foreground -no-remote | |||
== Gory Details of Testing With cfx == | == Gory Details of Testing With cfx == | ||