Arka Uç Yazılım Projeleri İçin Üretken Yapay Zekatabanlı, Sözleşme Odaklı Otomatik Birim Testi Bakımyaklaşımı
Arka Uç Yazılım Projeleri İçin Üretken Yapay Zekatabanlı, Sözleşme Odaklı Otomatik Birim Testi Bakımyaklaşımı
Yükleniyor...
Özet
Birim testleri arka uç yazılım kalitesi için hayati öneme sahiptir; ancak test setlerini sık değişen API ve kontratlarla uyumlu tutmak, iş gücü gerektiren ve hataya açık bir süreçtir. Geleneksel test üretim teknikleri yüksek kod kapsamı sağlasa da okunabilirlikten yoksundur; mevcut Büyük Dil Modeli (LLM) araçları ise bakım aşamasından ziyade ağırlıklı olarak ilk test oluşturmaya odaklanmaktadır. Bu çalışmada, otomatik birim test bakımı için kontrat güdümlü ve LLM destekli bir çerçeve sunulmaktadır. Yaklaşımımız, manuel eforu en aza indirmek ve kapsamı korumak amacıyla kontrat evrimi tespiti ile adaptif test yeniden üretimini birleştirmektedir. Dört farklı projede 28 kontrat değişikliği örneği üzerinde yapılan değerlendirmelerde, çerçeve genel olarak %50 onarım başarı oranı elde etmiştir. Bu oran, test açısından zengin projelerde %85,7'ye yükselirken, zayıf assertion içeren projelerde %14,3'e düşmüştür. Başarılı onarımların %80'inin 'geri dönüş' (fallback) mekanizması sayesinde gerçekleşmesi, basit yamalamanın ötesinde adaptif stratejilerin gerekliliğini vurgulamaktadır. Ayrıca çerçeve, çalışmayan testleri bilgilendirici ve geçerli testlere dönüştürerek test kalitesini artırmıştır. Sonuçlar, kontrat güdümlü LLM tabanlı bakımın gelişen yazılımlar için pratik bir çözüm olduğunu, ancak etkinliğinin mevcut test seti yapısından önemli ölçüde etkilendiğini göstermektedir.
Unit testing is an equally important aspect of the quality of backend software, whereas synchronization between test suites and the frequent changes of APIs and contracts is a challenging task manually. The conventional approach to test generation is highly effective in terms of test coverage, whereas the test maintainability aspect lacks to some extent, and the current state-of-the-art solutions based on the Large Language Model mainly focus on test generation rather than test maintenance. In this paper, a contract-based test maintenance approach powered by an LLM is proposed. The proposed framework has been tested on 28 instances of contract change. It appears that the overall success rate of repair is 50%, though this is contingent upon the test suite density, with a success rate of 85.7% in dense test suites and 14.3% in weakly asserted ones. Significantly, the fallback strategy led to a success rate of 80%, underlining the significance of sophisticated repair strategies, including those that go beyond mere patching. Moreover, the outcome also shows that many tests that were previously unexecutable became useful passing tests.
Unit testing is an equally important aspect of the quality of backend software, whereas synchronization between test suites and the frequent changes of APIs and contracts is a challenging task manually. The conventional approach to test generation is highly effective in terms of test coverage, whereas the test maintainability aspect lacks to some extent, and the current state-of-the-art solutions based on the Large Language Model mainly focus on test generation rather than test maintenance. In this paper, a contract-based test maintenance approach powered by an LLM is proposed. The proposed framework has been tested on 28 instances of contract change. It appears that the overall success rate of repair is 50%, though this is contingent upon the test suite density, with a success rate of 85.7% in dense test suites and 14.3% in weakly asserted ones. Significantly, the fallback strategy led to a success rate of 80%, underlining the significance of sophisticated repair strategies, including those that go beyond mere patching. Moreover, the outcome also shows that many tests that were previously unexecutable became useful passing tests.
Açıklama
YÖK Tez Merkezi Link
Bilim Dalları
Alıntı
WoS Q
Scopus Q
Kaynak
Cilt
Sayı
Başlangıç Sayfası
Bitiş Sayfası
67
Doaj Url
Koleksiyonlar
Yükleniyor...
