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

Possible to clear data before a regression run? #2

Open
AshMcConnell opened this issue Feb 29, 2016 · 3 comments
Open

Possible to clear data before a regression run? #2

AshMcConnell opened this issue Feb 29, 2016 · 3 comments

Comments

@AshMcConnell
Copy link

Hi Folks,

Is it possible to clear the jacoco execution data before a regression test run using this plugin? I want start with a clean slate without having to restart the server. Is that possible?

Thanks for your help!

@mattcj
Copy link
Owner

mattcj commented Feb 29, 2016

This functionality is not currently exposed through the plugin. Looks like something nice to add though. In the interim if you have the jacoco agent exposed via JMX you could manually clear it when needed via the reset() method. http://eclemma.org/jacoco/trunk/doc/api/org/jacoco/agent/rt/IAgent.html

@AshMcConnell
Copy link
Author

Thanks for the quick response.

I'm doing this as part of an automated regression run. I was thinking about using the plugin with resetAfterFetch at the start of the regression run in order to clear the data. The file isn't that big and I have a quick connection between the boxes (and a regression run that takes a few hours). Would that work instead of the JMX route?

Thanks!
Ash

@mattcj
Copy link
Owner

mattcj commented Mar 1, 2016

That sounds like an excellent idea. Let me know if it works out for you. I'll likely still add the reset feature, but not quite sure how soon I'll get the time.

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

2 participants