From 6857dbcff99a4bb5c4cb3b497b147f726139aab3 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Wed, 5 Mar 2025 11:53:22 +0100 Subject: [PATCH] removed the count with grep since it's useless --- handlers.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/handlers.py b/handlers.py index 2d41fc6..71f36fe 100644 --- a/handlers.py +++ b/handlers.py @@ -83,14 +83,6 @@ class BuildHandler(ABC): extracted_successfully = self.extract_test_numbers(output) - grep_cmd = f"grep -r --include='*.java' -E '@Test|@ParameterizedTest' {self.path} | wc -l" # NOTE: After inspection, this is an upper bound, since comments get matched, but also, non c'entra nulla, not a good idea to keep it - try: - result = subprocess.run(grep_cmd, shell=True, capture_output=True, text=True, check=True) - test_count = result.stdout.strip() - except subprocess.CalledProcessError as e: - test_count = "-1" # Default to 0 if grep command fails - - self.updates["n_tests_with_grep"] = test_count return extracted_successfully