论文标题

用于测试案例优先级的神经网络嵌入

Neural Network Embeddings for Test Case Prioritization

论文作者

Lousada, João, Ribeiro, Miguel

论文摘要

在现代软件工程中,连续集成(CI)已成为系统地管理软件开发的生命周期的必不可少的一步。大型公司努力在有用的时间内更新管道更新和运行,这是由于大量的变化和功能的增加,这些功能彼此之间建立并有几个开发人员,并在不同的平台上工作。与此类软件更改相关联,测试总是有很大的组成部分。随着团队和项目的增长,详尽的测试迅速变得可抑制,坚决选择最相关的测试用例,而不会损害软件质量。我们已经开发了一种称为测试案例优先级的神经网络嵌入的新工具(NNE-TCP)是一个新型的机器学习(ML)框架,该框架分析了当存在测试状态过渡时修改了哪些文件,并通过将它们映射到多维矢量中,并通过相似性将它们映射到多维矢量中,并将其映射到多维矢量中。进行新的更改后,将更有可能链接到修改文件的测试将优先考虑,从而减少查找新引入故障所需的资源。此外,NNE-TCP可以在低维空间中可视化实体可视化,从而使其他通过相似性进行分组和测试的方式来减少冗余。通过应用NNE-TCP,我们首次显示修改后的文件和测试之间的连接相对于其他传统方法是相关且具有竞争力的。

In modern software engineering, Continuous Integration (CI) has become an indispensable step towards systematically managing the life cycles of software development. Large companies struggle with keeping the pipeline updated and operational, in useful time, due to the large amount of changes and addition of features, that build on top of each other and have several developers, working on different platforms. Associated with such software changes, there is always a strong component of Testing. As teams and projects grow, exhaustive testing quickly becomes inhibitive, becoming adamant to select the most relevant test cases earlier, without compromising software quality. We have developed a new tool called Neural Network Embeeding for Test Case Prioritization (NNE-TCP) is a novel Machine-Learning (ML) framework that analyses which files were modified when there was a test status transition and learns relationships between these files and tests by mapping them into multidimensional vectors and grouping them by similarity. When new changes are made, tests that are more likely to be linked to the files modified are prioritized, reducing the resources needed to find newly introduced faults. Furthermore, NNE-TCP enables entity visualization in low-dimensional space, allowing for other manners of grouping files and tests by similarity and to reduce redundancies. By applying NNE-TCP, we show for the first time that the connection between modified files and tests is relevant and competitive relative to other traditional methods.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源