ACM Transactions on Software Engineering and Methodology· 2026Q1
TestART: LLM Tabanlı Birim Testleri İyileştirmek İçin Otomatik Üretim ve Onarımın Birlikte Evrimi
TestART: Improving LLM-based Unit Test ing via Co-evolution of A utomated Generation and R epair I t eration
- 1atıf
- Q1SCImago
- 2026yıl
Kısa özet
TestART, otomatik üretim ve onarımın birlikte evrimiyle LLM tabanlı birim testlerini iyileştiren yeni bir yöntemdir; temelleri %18 daha yüksek ve kapsama %20 daha iyi oranlara ulaşmıştır.
Yapay zekâ ile başlık ve abstract'tan üretildi; tam metin okunmaz.
Ana noktalar
- TestART, derleme hataları ve kapsama geri bildirimi eksikliği gibi sınırlamaların üstesinden gelmek için LLM test üretimini ve onarımını birlikte evrimleştirir.
- LLM tarafından üretilen test senaryolarını düzeltmek için şablon tabanlı bir onarım stratejisi kullanır.
- Başarılı testlerden elde edilen kapsama bilgileri, üretim için rehberli geri bildirim olarak kullanılır.
- Pozitif istem enjeksiyonu, tekrarlayan bastırmayı önleyerek test senaryosu yeterliliğini artırır.
- TestART, temellere kıyasla %18'lik bir geçme oranı iyileştirmesi ve %20'lik bir kapsama iyileştirmesi gösterir.
Yapay zekâ ile başlık ve abstract'tan üretildi; tam metin okunmaz.
Özet (abstract)
Unit testing is crucial for detecting bugs in individual program units but consumes time and effort. Recently, large language models (LLMs) have demonstrated remarkable capabilities in generating unit test cases. However, several problems limit their ability to generate high-quality unit test cases: (1) compilation and runtime errors caused by the hallucination of LLMs; (2) lack of testing and coverage feedback information restricting the increase of code coverage; and (3) the repetitive suppression problem causing invalid LLM-based repair and generation attempts. To address these limitations, we propose TestART , a novel unit test generation method. TestART improves LLM-based unit testing via co-evolution of automated generation and repair iteration, representing a significant advancement in automated unit test generation. TestART leverages the template-based repair strategy to effectively fix bugs in LLM-generated test cases for the first time. Meanwhile, TestART extracts coverage information from successful test cases and uses it as coverage-guided testing feedback. It also incorporates positive prompt injection to prevent repetition suppression, thereby enhancing the sufficiency of the final test case. This synergy between generation and repair elevates the correctness and sufficiency of the produced test cases significantly beyond previous methods. Through comparative experiments, TestART demonstrates an 18% improvement in pass rate and a 20% enhancement in coverage across three types of datasets compared to baselines. Additionally, it achieves better coverage rates than EvoSuite with only half the number of test cases. These results demonstrate TestART's superior ability to produce high-quality unit test cases by harnessing the power of LLMs while overcoming their inherent flaws.
Yazarların özeti; kaynağından alınmıştır. ACM Transactions on Software Engineering and Methodology, 2026 · DOI ↗
Ücretsiz hesapla devam et
Makaleye Sor ile bu makaleye günde 3 soru ücretsiz; makaleyi kaydet, kaynakçasını al, ilgi alanına göre her gün yeni özetler. Çıkarımlar Premium.
Web'de ücretsiz devam etGoogle ya da Apple hesabınla giriş; kart istemez. Bu makaleye geri dönersin.
Telefonda:
Alan: Yazılım
SoftwareComputer Science