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

OC-44 Clover does not detect modification when a class is moved without changing package name #44

Open
marek-parfianowicz opened this issue Dec 15, 2019 · 1 comment

Comments

@marek-parfianowicz
Copy link
Member

Summary: If a class is moved from one directory to another (without changing the package name), and the class is changed, Clover does not detect the modification. This is a safety issue (i.e., a bug may be missed).

Steps to Reproduce: Run the bash script ./s provided in this directory. This script (1) runs test with clover, (2) moves class C2 from src/test to src/main, (3) changes the return value of method f under test, and (4) runs the same test with Clover again.

Expected Results: p.C1Test fails in the second execution.

Actual Results: p.C1Test passes in the second execution.

Explanation: Clover keeps the original instrumented class in target/clover/src-instrumented/ although it should be deleted.

@marek-parfianowicz
Copy link
Member Author

Original report: https://bitbucket.org/openclover/clover/issues/44

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