[RFC] Changes to 'selftest --starting-with'

Russ Brown pickscrape at gmail.com
Wed Aug 20 20:11:26 BST 2008


John Arbash Meinel wrote:
> Russ Brown wrote:
>> John Arbash Meinel wrote:
> 
> ...
> 
>> Hopefully I'm not barking up the wrong tree here, but can't you just do
>> something like this instead:
> 
>> bzr selftest test_command
> 
>> which will run all tests that contain the string 'test_command'.
> 
>> When I was writing tests for the diffstat plugin I just had to run bzr
>> selftest diffstat and it Just Worked.
> 
>>> John
>>> =:->
> 
> That works, but it has to load the whole test suite, and then filter using
> your regex. And when you have 11+k tests like bzr does, the time to figure out
> the full test suite is actually rather long.
> 
> If you use -s/--starting-with it *only* loads the tests that start with the
> string. This can make a very large difference in the time it takes to run the
> subset you want.
> 

Oh yes, I see what you mean... I didn't know there was that distinction.




More information about the bazaar mailing list