paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MAF: Method-Anchored Test Fragmentation for Test Code Plagiarism Detection

MAF:基于方法锚定的测试代码分片用于测试代码抄袭检测
ICSE 2019 IEEE/ACM 41st International Conference on Software Engineering: Software Engineering Education and Training (ICSE-SEET)2019匹配度 3/10 · 论文使用双向静态切片进行测试代码抄袭检测,属于程序分析/静态切片在软件工程教育中的应用,但与用户核心关注的 PL→AI、AI→PL、浮点程序分析和贝叶斯程序分析均无直接关联。其目标场景(教育平台抄袭检测)也偏离用户强调的 ML/Agentic 系统、形式化验证与工业落地方向。引用 12 inbox
Weisong Sun, Xingya Wang, Haoran Wu, Ding Duan, Zesong Sun, Zhenyu Chen
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出 MAF 技术,用双向静态切片锚定被测方法并抽取测试代码片段,提升抄袭检测效果。

软件工程教育快速发展催生了在线练习平台,测试代码抄袭检测成为保障学习效果的需求。已有相似度度量直接作用于整份测试代码时,会被大量与被测方法无关的噪声代码干扰。本文提出 MAF(Method-Anchored test Fragmentation)技术,通过双向静态切片定位被测方法(method under test),并据此将测试代码切分为与之相关的片段,再结合现有相似度度量进行抄袭检测。作者在 Mooctest 数据集上开展实验,该平台近三年支持了全球数百项测试活动。结果表明,MAF 能有效提升相似度度量在测试代码抄袭检测上的精确率、召回率与 F1 值。作者认为该技术还可扩展到测试推荐、测试复用等工程应用。

问题
在线编程练习平台中的测试代码抄袭检测易受大量与被测方法无关的噪声代码干扰,导致现有相似度度量性能下降。
方法
提出 MAF,利用双向静态切片锚定被测方法,并抽取与之相关的测试代码片段,再配合相似度度量完成检测。
评估
在 Mooctest 数据集上实验,比较加入 MAF 前后相似度度量的精确率、召回率与 F1 值。
原文摘要(Abstract)

Software engineering education becomes popular due to the rapid development of the software industry. In order to reduce learning costs and improve learning efficiency, some online practice platforms have emerged. This paper proposes a novel test code plagiarism detection technology, namely MAF, by introducing bidirectional static slicing to anchor methods under test and extract fragments of test codes. Combined with similarity measures, MAF can achieve effective plagiarism detection by avoiding massive unrelated noisy test codes. The experiment is conducted on the dataset of Mooctest, which so far has supported hundreds of test activities around the world in the past 3 years. The experimental results show that MAF can effectively improve the performance (precision, recall and F1-measure) of similarity measures for test code plagiarism detection. We believe that MAF can further expand and promote software testing education, and it can also be extended to use in test recommendation, test reuse and other engineering applications.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{SunWWDSC19,
  title = {MAF: Method-Anchored Test Fragmentation for Test Code Plagiarism Detection},
  author = {Weisong Sun and Xingya Wang and Haoran Wu and Ding Duan and Zesong Sun and Zhenyu Chen},
  booktitle = {ICSE},
  year = {2019},
  doi = {10.1109/icse-seet.2019.00020}
}