ConditionEvaluationResult (ExtensionContext context) { if (MAX_FAILURE_TEST_COUNT >= 0 && ourFailedTestsCount.get() > MAX_FAILURE_TEST_COUNT) { if (myDisabledReason == null) { String msg = "Too many errors (" + ourFailedTestsCount.get() + ", MAX_FAILURE_TEST_COUNT = " + MAX_FAILURE_TEST_COUNT + "). Executed: " + ourExecutedTestsCount.get() + " tests"; myDisabledReason = ConditionEvaluationResult.disabled(msg); } return myDisabledReason; } return ENABLED; }