Context: Test smells are symptoms of sub-optimal design choices adopted when developing test cases. Previous studies have proved their harmfulness for test code maintainability and effectiveness. Therefore, researchers have been proposing automated, heuristic-based techniques to detect them. However, the performance of such detectors is still limited and dependent on thresholds to be tuned. Objective: We propose the design and experimentation of a novel test smell detection approach based on machine learning to detect four test smells. Method: We plan to develop the largest dataset of manually-validated test smells. This dataset will be leveraged to train six machine learners and assess their capabilities in within- and cross-project scenarios. Finally, we plan to compare our approach with state-of-the-art heuristic-based techniques.
翻译:背景:测试气味是开发测试案例时采用的次最佳设计选择的症状。以前的研究已经证明它们对测试代码的可维持性和有效性有害。因此,研究人员一直在提出自动的、基于超自然的技术来检测它们。然而,这些探测器的性能仍然有限,取决于需要调整的阈值。目标:我们提议根据机器学习来检测四种测试气味,设计和试验一种新的测试气味检测方法。方法:我们计划开发人工验证测试气味的最大数据集。这一数据集将被用于培训6名机器学习者,并评估他们在项目内和跨项目情景下的能力。最后,我们计划将我们的方法与最新的超自然技术进行比较。