arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.09866cs.SE
收藏

自动驾驶软件的细粒度测试:基于LLM驱动的单元测试的Autoware研究

Fine-grained Testing for Autonomous Driving Software: a Study on Autoware with LLM-driven Unit Testing

Wenhan Wang, Xuan Xie, Yuheng Huang, Renzhi Wang, An Ran Chen, Lei Ma

AI总结:

针对自动驾驶系统源代码细粒度测试不足的问题,本研究聚焦工业框架Autoware,分析人工与LLM生成的单元测试用例,发现人工测试覆盖率有限且LLM测试应用存在挑战,进而提出AwTest-LLM方法以提升测试覆盖率与通过率。

摘要:

测试自动驾驶系统(ADS)对确保其可靠性和安全性至关重要。现有ADS测试工作侧重于设计场景以评估系统级行为,而ADS源代码的细粒度测试受到的关注相对较少。为填补这一空白,我们开展了首个针对ADS源代码测试(具体为单元测试)的研究。本研究聚焦于工业级ADS框架Autoware,分析了人工编写的测试用例与大语言模型(LLM)生成的测试用例。研究发现,Autoware中人工编写的测试用例覆盖率有限,将LLM生成的测试应用于Autoware单元测试仍存在显著挑战。为克服这些挑战,我们提出了AwTest-LLM这一新型方法,以提升Autoware各包的测试覆盖率并提高测试用例通过率。

英文摘要:

Testing autonomous driving systems (ADS) is critical to ensuring their reliability and safety. Existing ADS testing works focuses on designing scenarios to evaluate system-level behaviors, while fine-grained testing of ADS source code has received comparatively little attention. To address this gap, we present the first study on testing, specifically unit testing, for ADS source code. Our study focuses on an industrial ADS framework, Autoware. We analyze both human-written test cases and those generated by large language models (LLMs). Our findings reveal that human-written test cases in Autoware exhibit limited test coverage, and significant challenges remain in applying LLM-generated tests for Autoware unit testing. To overcome these challenges, we propose AwTest-LLM, a novel approach to enhance test coverage and improve test case pass rates across Autoware packages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑