New --start-at and --end-at options for running mochitests

Gijs Kruitbosch gijskruitbosch at gmail.com
Mon Oct 28 22:04:43 UTC 2013


Woo! This is awesome. Thank you for doing this. :-)

~ Gijs

On 28/10/13, 22:56 , Bill McCloskey wrote:
> Hi everyone,
>
> 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:
>
> a/b/c
> a/b/d
> a/b/e
> f/g/h
> f/g/i
>
> Then specifying --start-at=a/b/d --end-at=f/g/h will run these tests:
>
> a/b/d
> a/b/e
> f/g/h
>
> Additionally, you can just specify a suffix of the name, so --start-at=d --end-at=h also works.
>
> -Bill
>



More information about the firefox-dev mailing list