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

Mike Conley mconley at mozilla.com
Mon Oct 28 22:09:52 UTC 2013


Yes, this is very handy! Thank you!

On 28/10/2013 6:04 PM, Gijs Kruitbosch wrote:
> 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
>>
> _______________________________________________
> firefox-dev mailing list
> firefox-dev at mozilla.org
> https://mail.mozilla.org/listinfo/firefox-dev



More information about the firefox-dev mailing list