New --start-at and --end-at options for running mochitests
wmccloskey at mozilla.com
Mon Oct 28 21:56:28 UTC 2013
Bug 931279 just landed, and I thought it might be of general interest. Here's a quick description from the bug:
Sometimes a test fails because of something done by an earlier test. In that case, you want to run all tests from the earlier test to the failing test. If the tests are in the same directory, you can use --test-path to do this. But if they're in different directories, then you often end up running the entire test suite just to reproduce the problem.
This patch adds new options --start-at and --end-at to runtests.py. They allow you to specify which tests to start and end on. For example, if the list of all tests is:
Then specifying --start-at=a/b/d --end-at=f/g/h will run these tests:
Additionally, you can just specify a suffix of the name, so --start-at=d --end-at=h also works.
More information about the firefox-dev