@Documented @Retention(value=RUNTIME) @Target(value={METHOD,TYPE}) @Inherited public @interface Seed
If applied to the
suite, it semantically overrides SysGlobals.SYSPROP_RANDOM_SEED
, but
does not affect individual test cases (these should be repeatable anyway).
If applied to the method, it overrides the default randomized value that is derived from the global suite's seed.
Typically, you'll want to override the class's seed to make the test repeat a "fixed" scenario. Occasionally if there's a single failing test case for repeated tests, one may want to override both to fix both the class's randomness and a given test case randomness.
public abstract String value
random
to
indicate randomized seed should be used (default value).
The default value random
can be used to construct a list of known
seeds for which a test previously failed and a random seed in addition to that (coverage
of previous failures + randomized run). See Seeds
for more info.
Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.