Tests can set command-line flags but can't clear them when set by the testing configuration |
||
Issue descriptionWhen a flag is set in fieldtrial_testing_config.json, there appears to be no way to clear it using the @CommandLineFlags annotation in a test. This makes it very difficult to have tests for both true and false values when the config is set to true. When the config is set to false, it is possible to override for an individual test. For Contextual Search while developing CL 2506253002 I spent a lot of time trying different settings, and came to the above conclusion. There is something called ParameterizedTest that may be able to handle this situation, but it seems complicated and I had trouble finding any good examples to guide its usage.
,
Dec 14 2016
(that's not to say we shouldn't do anything here, just an explanation of the current behavior)
,
Dec 14 2016
It's good to have confirmation of the underlying reason, thanks!
,
Feb 9 2018
|
||
►
Sign in to add a comment |
||
Comment 1 by jbudorick@chromium.org
, Dec 14 2016