[gwt-contrib] Re: Proposed API Addition - GWTTestCase#getStrategy() to allow precompilation of JUnit tests

2009-09-25 Thread Ray Ryan

Please forward this to GWT announce, and cc skybrian

On Friday, September 25, 2009, John LaBanca jlaba...@google.com wrote:
 If you override JUnitShell.Strategy, you should consider this email.


 JUnitShell.Strategy,
 which determines how GWT modules are compiled for test cases, is
 currently an interface.  We would like to change it to be a class so we
 can add methods without breaking code.  This is a relatively obscure class, 
 so it should have, limited effect.  See the Benchmark class for an example of 
 its use.

 What
 prompted this change is a patch that pmuetschard created which
 allows users to annotate individual test methods with
 @WithModuleParameters, controlling the deferred bindings for that
 specific test.  The patch adds a method to the existing
 JUnitShell.Strategy interface.
 http://gwt-code-reviews.appspot.com/71801/show
 Thanks,
 John LaBanca
 jlaba...@google.com

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Proposed API Addition - GWTTestCase#getStrategy() to allow precompilation of JUnit tests

2009-09-25 Thread Scott Blum
John, I'm kind of puzzled... how would a user actually override
getStrategy()?  The Strategy type is not compilable GWT client code, so a
GWTTestCase that actually does the override should fail to compile as GWT
client code.  What am I missing?

On Fri, Sep 25, 2009 at 11:33 AM, John LaBanca jlaba...@google.com wrote:

 If you override JUnitShell.Strategy, you should consider this email.


 JUnitShell.Strategy, which determines how GWT modules are compiled for test
 cases, is currently an interface.  We would like to change it to be a class
 so we can add methods without breaking code.  This is a relatively obscure
 class, so it should have, limited effect.  See the Benchmark class for an
 example of its use.

 What prompted this change is a patch that pmuetschard created which allows
 users to annotate individual test methods with @WithModuleParameters,
 controlling the deferred bindings for that specific test.  The patch adds a
 method to the existing JUnitShell.Strategy interface.
 http://gwt-code-reviews.appspot.com/71801/show

 Thanks,
 John LaBanca
 jlaba...@google.com

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---