Jetpack/Testing: Difference between revisions

Update about test manifests
(Running with Make: don't.)
(Update about test manifests)
 
Line 30: Line 30:
== Disabling tests ==
== Disabling tests ==


If tests need to be disabled then you can do so by adding the following to the '''end''' of the test file:
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].
 
  // Test disabled because of bug XXXXXX
  module.exports = {};
 
If you need to disable for a particular platform:
 
  // Test disabled on Windows because of bug XXXXXX
  if (require("sdk/system/runtime").OS == "WINNT")
    module.exports = {};
 
The OS values are the normal [https://developer.mozilla.org/en-US/docs/OS_TARGET OS_TARGET] values.


== Running tests from the SDK repository ==
== Running tests from the SDK repository ==
canmove, Confirmed users
1,567

edits