public ReproduceErrorMessageBuilder appendTestGroupOptions(RandomizedContext ctx) { if (ctx != null) { ctx.getGroupEvaluator().appendGroupFilteringOptions(this); } return this; }
public ReproduceErrorMessageBuilder appendTestGroupOptions(RandomizedContext ctx) { if (ctx != null) { ctx.getGroupEvaluator().appendGroupFilteringOptions(this); } return this; }
/** * Return <code>true</code> if {@link Nightly} test group is explicitly enabled. * * @see RandomizedContext#getGroupEvaluator() * @see GroupEvaluator#isGroupEnabled(Class) */ public boolean isNightly() { checkDisposed(); return getGroupEvaluator().isGroupEnabled(Nightly.class); }
/** * Return <code>true</code> if {@link Nightly} test group is explicitly enabled. * * @see RandomizedContext#getGroupEvaluator() * @see GroupEvaluator#isGroupEnabled(Class) */ public boolean isNightly() { checkDisposed(); return getGroupEvaluator().isGroupEnabled(Nightly.class); }
@Test public void nightlyOnlyWithAssume() throws Exception { // Only run if Nightly test group is explicitly enabled using -Dtests.nightly=true Assume.assumeTrue(RandomizedContext.current().getGroupEvaluator().isGroupEnabled(Nightly.class)); }