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
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to