mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
enable all java tests
This commit is contained in:
parent
63cf99361d
commit
a08326ab60
1 changed files with 9 additions and 9 deletions
|
@ -916,15 +916,6 @@ 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"],
|
||||
|
@ -956,6 +947,15 @@ def run_unit_tests(original_dname, testdir, history_fname, test_files):
|
|||
os.makedirs(dst.parent, exist_ok=True)
|
||||
shutil.copy(src, dst)
|
||||
|
||||
# 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)
|
||||
|
||||
print(" ".join(command))
|
||||
|
||||
result = subprocess.run(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue