def METHOD_NAME(self, fname: str) -> None:
    with open(fname, encoding="utf-8") as f:
        for line in f:
            line = line.strip()
            if (not line) or line[0] == '#':
                continue
            words = line.split()
            test_file = self.parse_test_name(words[0])
            groups = words[1:]
            for g in groups:
                self.groups[g].add(test_file)