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-55 Invoking a constructor and introspecting the class does not create dependency #55

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

Comments

@marek-parfianowicz
Copy link
Member

Chenguang Zhu created an issue 2018-01-30
Summary: If modifying the number of fields in a class affects the test (e.g., the test uses reflection to check the number of fields in a class), Clover does not select the test in the next execution. This is a safety issue, i,e., Clover may not select tests with changed behavior.

Steps to Reproduce: Run the bash script ./s provided in this directory. This script (1) runs the test class p.CTest with Clover, (2) inserts one more field f3 in the class p.C under test, and (3) runs p.CTest with Clover again.

Expected Results: p.CTest runs both times (it passes in the first run and fails in the second run).

Actual Results: p.CTest runs only the first time (and does not run test the second time).

@marek-parfianowicz
Copy link
Member Author

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

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