Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: mapping line index to actual line in source file ( coverage-matrix.json file ) #126

Open
SZTankWang opened this issue Jul 25, 2021 · 0 comments

Comments

@SZTankWang
Copy link

Hi:
I would like to thank you for your diligent work at spider UCI of making the tacoco tool. I am currently using tacoco together with tarantula to assist an experiment studying fault localization and regression testing techniques.

Problem Description

In the compact-cov-matrix.json file generated by tacoco, there is a testStmtMatrix attribute for each source file covered by a test class's run. The testStmtMatrix is in the form of Boolean [test ][stmt ], indicating for a single test case which line in the source file has been covered. This information is important to Tarantula to output the suspiciousness score of a statement. However, the problem is when I look at the line with the highest suspiciousness in a buggy source file, those line numbers are not accurate. Currently, the approach I am taking to map an index i in the testStmtMatrix to the actual line in the source file is by adding i with the firstline recorded by tacoco. As a result, the line number with the highest suspicousness seems to be irrelevant with the failing test cases, for example, unlikely-covered methods or even brackets.

My Thought

I guess the problem could be that my experiment subject files are heavily commented, which makes it inaccurate for Tarantula to map a suspicousness score to the correct line in the source file. Therefore, I would like to ask that do you have any comments or thoughts on how to utilize tacoco correctly to assist Tarantula? I would like to ask for a new feature on mapping the line index in testStmtMatrix to the actual line in a source file.

I look forward to hearing from you. Thank you very much!

Regards,
Zhenming Wang
@VijayKrishna @kajdreef @tariq1890 @nish2292 @jycamus90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant