public class Test011NightlyTests extends RandomizedTest
RandomizedRunner has a notion of a Nightly test and a few methods
for "scaling" the execution depending if is in nightly mode or not. In the simplest
case (see nightlyOnly() a test case is run in nightly mode and ignored in
normal runs. This can be done by annotating a test case or suite using Nightly
or by assuming nightly mode (using the result of RandomizedContext.isNightly()
as the condition). There is a difference between these two methods and it is left as an
exercise for the reader to discover what this difference is.
For tests whose runtime depends on the amount of input data or other varying complexity,
one can use RandomizedTest.scaledRandomIntBetween(int, int) method or the current
RandomizedTest.multiplier(). These methods adjust to the nightly mode picking
larger values than in daily mode (see javadocs for details).
ISO8859_1, SYSPROP_MULTIPLIER, US_ASCII, UTF16, UTF32, UTF8| Constructor and Description |
|---|
Test011NightlyTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
nightlyOnly() |
void |
nightlyOnlyWithAssume() |
void |
scaling() |
$, $$, assumeFalse, assumeFalse, assumeNoException, assumeNoException, assumeNotNull, assumeTrue, assumeTrue, atLeast, atMost, between, closeAfterSuite, closeAfterTest, frequently, getContext, getRandom, globalTempDir, isNightly, iterations, multiplier, newServerSocket, newTempDir, newTempDir, newTempFile, newTempFile, randomAsciiOfLength, randomAsciiOfLengthBetween, randomBoolean, randomByte, randomDouble, randomFloat, randomFrom, randomFrom, randomGaussian, randomInt, randomInt, randomIntBetween, randomLocale, randomLong, randomRealisticUnicodeOfCodepointLength, randomRealisticUnicodeOfCodepointLengthBetween, randomRealisticUnicodeOfLength, randomRealisticUnicodeOfLengthBetween, randomShort, randomTimeZone, randomUnicodeOfCodepointLength, randomUnicodeOfCodepointLengthBetween, randomUnicodeOfLength, randomUnicodeOfLengthBetween, rarely, scaledRandomIntBetween, sleep, systemPropertyAsBoolean, systemPropertyAsDouble, systemPropertyAsFloat, systemPropertyAsInt, systemPropertyAsLongassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failCopyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.