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

Coverage tool: improve support for execution environments with custom class loading #149

Closed
rliesenfeld opened this Issue Mar 9, 2015 · 0 comments

Comments

1 participant
@rliesenfeld
Member

rliesenfeld commented Mar 9, 2015

Certain testing tools (PowerMock, Robolectric) create copies of classes through a custom class loader.

The coverage tool currently won't instrument classes whose names have already been registered as instrumented; this check should also account for different class loaders.

Also, if classes get "reloaded" without a complete ProtectionDomain, they won't be considered for coverage. This situation should also be checked for, so the reloaded classes still get instrumented.

@rliesenfeld rliesenfeld self-assigned this Mar 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment