On Thu, Apr 29, 2010 at 5:44 PM, Alexey Proskuryakov <a...@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
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev