Defining test oracles is crucial and central to test development, but manual construction of oracles is expensive. While recent neural-based automated test oracle generation techniques have shown promise, their real-world effectiveness remains a compelling question requiring further exploration and understanding. This paper investigates the effectiveness of TOGA, a recently developed neural-based method for automatic test oracle generation by Dinella et al. TOGA utilizes EvoSuite-generated test inputs and generates both exception and assertion oracles. In a Defects4j study, TOGA outperformed specification, search, and neural-based techniques, detecting 57 bugs, including 30 unique bugs not detected by other methods. To gain a deeper understanding of its applicability in real-world settings, we conducted a series of external, extended, and conceptual replication studies of TOGA.
In a large-scale study involving 25 real-world Java systems, 223.5K test cases, and 51K injected faults, we evaluate TOGA's ability to improve fault-detection effectiveness relative to the state-of-the-practice and the state-of-the-art. We find that TOGA misclassifies the type of oracle needed 24% of the time and that when it classifies correctly around 62% of the time it is not confident enough to generate any assertion oracle. When it does generate an assertion oracle, more than 47% of them are false positives, and the true positive assertions only increase fault detection by 0.3% relative to prior work. These findings expose limitations of the state-of-the-art neural-based oracle generation technique, provide valuable insights for improvement, and offer lessons for evaluating future automated oracle generation methods.
Lessons Learned: A Multi-Agent Framework for Code LLMs to Learn and Improve
Rensselaer Polytechnic Institute(拉特兰理工学院);Massachusetts Institute of Technology(麻省理工学院);Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab, IBM Research(MIT-IBM沃森人工智能实验室,IBM研究院)
Supporting 64-bit global indices in Epetra and other Trilinos packages -- Techniques used and lessons learned
Trilinos项目致力于在面向对象的框架内促进数学软件库的设计、开发、集成和持续支持。它适用于大规模、复杂的多物理场工程和科学应用。Epetra是它的基本包之一。它提供串行和并行线性代数功能。在2012年发布的Trilinos 11.0版本之前,Epetra使用C++ int数据类型来存储自由度(DOF)的全局和局部索引。由于int通常是32位的,这限制了最大的问题大小小于大约20亿DOF。即使分布式内存机器可以处理更大的问题,情况也是如此。我们为全局索引添加了对C++ long long数据类型的可选支持,该数据类型至少为64位宽。为了节省内存,保持内存限制操作的速度,并减少对代码的进一步更改,本地索引仍然是32位的。我们记录了实现此功能所需的更改以及如何使用新功能。我们还报告了从各种角度修改成熟和流行的软件包的经验教训-设计目标,向后兼容性,工程决策,C++语言功能,对现有用户和其他软件包的影响,以及构建集成。
Making a Pipeline Production-Ready: Challenges and Lessons Learned in the Healthcare Domain
Instituto de Matemática e Estatística (IME), University of São Paulo (USP), Brazil(数学与统计学研究所(IME),圣保罗大学(USP),巴西);Jheronimus Academy of Data Science (JADS), Tilburg University (TiU)(杰赫罗尼穆斯数据科学学院(JADS),蒂尔堡大学(TiU))