Journal of Software Engineering1819-43112152-0941Asian Network for Scientific Information10.3923/jse.2014.328.344LiYihan LiuChao 4201484Coverage-based fault localization is a statistical technique that assists developers in finding faulty entities efficiently by contrasting program traces. Although coverage-based fault localization has been shown to be promising, its effectiveness still suffers from occurrences of coincidental correctness which means test cases exercise faulty statements but do not result in failure information. Recent researches indicate that coincidental correctness is a common problem in software testing and harmful for fault localization. To enhance effectiveness of fault localization, in this study, we present a clustering approach to identify coincidental correctness in test suites for fault localization. An effective clustering technique is used to group test cases. Then we present an adaptive sampling strategy to identify and choose potential coincidentally correct tests from clusters such that the number of the identified coincidentally correct tests is guaranteed to be no more than the actual number of coincidentally correct tests in the test suite. Three representative fault localization techniques are evaluated to see whether they can benefit from identified coincidentally correct tests. The experimental results show that our approach can alleviate the coincidental correctness problem and improve the effectiveness of fault localization.]]>Vessey, I.,198523459494Jones, J.A., M.J. Harrold and J. Stasko,20022002pp: 467477Abreu, R., P. Zoeteweij and A.J.C. van Gemund,20062006pp: 3946Naish, L., H.J. Lee and K. Ramamohanarao,201120132Qi, Y., X. Mao, Y. Lei, Z. Dai, Y. Qi and C. Wang,20132013pp: 828829Parnin, C. and A. Orso,20112011pp: 199209Richardson, D.J. and M.C. Thompson,199319533553Voas, J.M.,199218717727Masri, W., R. Abou-Assi, M. El-Ghali and N. Al-Fatairi,20092009pp: 15Masri, W. and R. Abou-Assi,20102010pp: 165174Miao, Y., Z. Chen, S. Li, Z. Zhao and Y. Zhou,20122012pp: 267272Yu, Y., J.A. Jones and M.J. Harrold,20082008pp: 201210Ammann, P.E. and J.C. Knight,198837418425Dickinson, W., D. Leon and A. Fodgurski,20012001pp: 339348Zhang, C., Z. Chen, Z. Zhao, S. Yan, J. Zhang and B. Xu,20102010pp: 171179Arthur, D. and S. Vassilvitskii,20072007pp: 10271035Liblit, B., A. Aiken, A.X. Zheng and M.I. Jordan,20032003pp: 141154Yan, S., Z. Chen, Z. Zhao, C. Zhang and Y. Zhou,20102010pp: 147154Do, H., G. Rothermel and A. Kinneer,2006113370Liu, C., L. Fei, X. Yan, J. Han and S.P. Midkiff,200632831848