public static boolean isTestDir(String dirName){
  return (!dirName.equals("script-tests") && !dirName.equals("resources") && !dirName.startsWith("."));
}

public static boolean isTestDir ( String dirName ) { return ( ! dirName . equals ( "script-tests" ) && ! dirName . equals ( "resources" ) && ! dirName . startsWith ( "." ) ) ; }
checks if the directory may contain tests or contains just helper files .
