boolean (String className) { if (!INCLUDE_UNCONVENTIONALLY_NAMED_TESTS && !className.endsWith("Test")) { return false; } if ("_FirstInSuiteTest".equals(className) || "_LastInSuiteTest".equals(className)) { return false; } if (ourFilter == null) { ourFilter = calcTestClassFilter("tests/testGroups.properties"); TestClassesFilter affectedTestsFilter = affectedTestsFilter(); if (affectedTestsFilter != null) { ourFilter = new TestClassesFilter.And(ourFilter, affectedTestsFilter); } TestClassesFilter explicitTestsFilter = explicitTestsFilter(); if (explicitTestsFilter != null) { ourFilter = new TestClassesFilter.And(ourFilter, explicitTestsFilter); } System.out.println("Initialized tests filter: " + ourFilter); } return (isIncludingPerformanceTestsRun() || isPerformanceTestsRun() == isPerformanceTest(null, className)) && // no need to calculate bucket matching (especially that may break fair bucketing), if the test does not match the filter ourFilter.matches(className) && matchesCurrentBucket(className); }