Jetpack/Testing: Difference between revisions

Line 18: Line 18:
   cfx testall
   cfx testall


To run only the API tests (typically the ones that break when Firefox changes), invoke testpkgs instead of testall:
To run only the API tests (typically the ones that break when Firefox changes), invoke <code>testpkgs</code> instead of <code>testall</code>:


   cfx testpkgs
   cfx testpkgs


To run only certain test suites, specify the --filter flag with a regular expression that matches the filenames of the test suites you want to run:
To run only certain test suites, specify the <code>--filter</code> flag with a regular expression that matches the filenames of the test suites you want to run:


   cfx testpkgs --filter panel
   cfx testpkgs --filter panel
Line 28: Line 28:
=== Specifying the Firefox Build ===
=== Specifying the Firefox Build ===


To run tests on a specific build of Firefox, specify the build via the --binary flag:
To run tests on a specific build of Firefox, specify the build via the <code>--binary</code> flag:


   cfx testall --binary /Applications/Nightly.app/
   cfx testall --binary /Applications/Nightly.app/
canmove, Confirmed users
737

edits