[RFC] support for plugins to implement their own log formatters
John A Meinel
john at arbash-meinel.com
Tue Feb 14 02:00:39 GMT 2006
Erik Bågfors wrote:
>> A blackbox test would be sufficient. You make 2 commits, and then you
>> check the output of "bzr log --log-format=XXX".
>> Look in "bzrlib/tests/test_log.py" it should give a basic idea. (we
>> should be testing for --line, and --short).
>>
>> But mostly I want you to write a test that forces the code with the bug
>> to be run. So that a bug doesn't show up there again.
>
> I've done that now. I am simply checking the output of bzr log/missing
> by counting how many lines they output, since "short" and "line"
> outputs a different number of lines. Hope this is ok.
>
> The tests triggers the bug which you can test by reverting one
> revision. (oops, just found a typo, revert two now).
>
> I've merged jam-integration into this branch as well, to get blackbox
> tests to run.
>
> /Erik
>
There is a small thing that still needs to be done. The list of tests is
kept alphabetical.
So instead of:
'bzrlib.tests.blackbox.test_export',
'bzrlib.tests.blackbox.test_missing',
'bzrlib.tests.blackbox.test_outside_wt',
+ 'bzrlib.tests.blackbox.test_logformats',
'bzrlib.tests.blackbox.test_pull',
We would prefer
'bzrlib.tests.blackbox.test_export',
+ 'bzrlib.tests.blackbox.test_logformats',
'bzrlib.tests.blackbox.test_missing',
'bzrlib.tests.blackbox.test_outside_wt',
'bzrlib.tests.blackbox.test_pull',
Otherwise I think it looks good.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060213/67505de2/attachment.pgp
More information about the bazaar
mailing list