From a8226989c8a50979eceaeb539132890f5a0613d8 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 19 Dec 2024 15:58:59 -0800 Subject: [PATCH] feat: Remove @Disabled annotations from Java test files --- benchmark/benchmark.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py index 027cfef66..86271189a 100755 --- a/benchmark/benchmark.py +++ b/benchmark/benchmark.py @@ -880,6 +880,15 @@ def run_test_real( def run_unit_tests(original_dname, testdir, history_fname, test_files): timeout = 60 * 3 + # Remove @Disabled annotations from Java test files + for file_path in test_files: + if file_path.endswith('.java'): + test_file = testdir / file_path + if test_file.exists(): + content = test_file.read_text() + content = re.sub(r'@Disabled\([^)]*\)\s*\n', '', content) + test_file.write_text(content) + # Map of file extensions to test commands TEST_COMMANDS = { ".py": ["pytest"],