[webkit-dev] Testing changes to CodeGenerator*.pm

Jeremy Orlow jorlow at chromium.org
Thu Apr 29 10:27:26 PDT 2010


On Thu, Apr 29, 2010 at 5:44 PM, Alexey Proskuryakov <ap at webkit.org> wrote:

>
> On 26.04.2010, at 22:06, Adam Barth wrote:
>
>  If you make changes to CodeGenerator*.pm, please test your
>> change using the following command:
>>
>> ~/git/webkit$ ./WebKitTools/Scripts/run-bindings-tests
>>
>
>
> I don't understand the utility of such testing. When one edits
> CodeGenerator*.pm, that's generally to change its output, so
> run-bindings-tests tests will of course fail.
>
> It's great to test end-to-end behavior, and unit tests can also also useful
> sometimes, but why test that source code stays byte to byte identical?
>

When you make a change to the code generator, you should make
a corresponding change to the generated test code.  This allows the reviewer
to see how the change in CodeGenerator*.pm affects the generated code and
documents the change in SVN.  The hope is that it'll be obvious if your
change is going to have unintended consequences on the generated code.
 We've found this useful when working on the V8 bindings.

J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100429/e83b04af/attachment.html>


More information about the webkit-dev mailing list