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

Coverage tool: add support for system properties getting set after JVM startup #219

rliesenfeld opened this issue Oct 18, 2015 · 0 comments


Copy link

@rliesenfeld rliesenfeld commented Oct 18, 2015

The Maven Surefire plugin, when given a configuration containing system properties (using "systemProperties" or "systemPropertyVariables"), only sets them into the System.getProperties() object at some later time, not at JVM startup as would happen if "-D" arg-line parameters had been used.

This prevents jmockit from knowing about properties like "coverage-classes" and "coverage-excludes", when it's initialized with the "-javaagent" JVM parameter, since Surefire won't have set them yet. To avoid this problem, the properties need to be read at a later time, after Surefire has had the opportunity to set them.

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

No branches or pull requests

1 participant