You wouldn't necessarily want to use it if the tests are going to run locally in hosted mode because the CPU is usually pegged anyway, but even then it probably wouldn't hurt because of the Timers in some UISuite tests.
You would want to use it in the following cases: - If your remote test machines are scarce (ex. a shared test infrastructure), you can use "-precompile all" to compile all modules before sending any tests to the test machines. This would reduce the amount of time needed on the test machines. This change also allows remote systems to run out of sync with each other, so one can complete before another starts. - If your remote machines are slow or you have Timers in your tests, you can use "-precompile parallel" to compile future modules while the current one executes. This is useful for remoteweb and selenium tests because the host usually sits idle waiting for the client machines to finish the tests. All remote tests benefit from the -userAgents option because we current compile for all user agents when running remote tests, even if we connect to only one system. @FYI - jgw only reviewed a small incremental change. fabbott and I did most of the review. Thanks, John LaBanca [email protected] On Tue, Sep 15, 2009 at 2:58 PM, Scott Blum <[email protected]> wrote: > On Tue, Sep 15, 2009 at 2:53 PM, <[email protected]> wrote: >> >> Adds a new option (-precompile) to JUnitShell to compile test modules >> before or during test runs, decreasing overall test time. Also adds the >> -userAgents option to specify remote browser user agents ahead of time, >> decreasing the number of permutations that need to be compiled for remote >> tests. > > > Question: under what circumstances would you *not* want to use -precompile? > IE, what are the downsides of using this option? > > >> Review by: fabbott, jgw (desk) > > > Wow, that's one heck of a desk review! > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
