vazexqi / CodingSpectator

Watches and analyzes code edits in the Eclipse IDE non-invasively
http://codingspectator.cs.illinois.edu
Other
20 stars 14 forks source link

Monitor junit tests/applications runs #140

Closed vazexqi closed 13 years ago

vazexqi commented 13 years ago

If we captured the times when a user launches the tests or the application, we get a sense for when the user is confident/not confident about a change that was made, be it through an automated refactoring or manually.

vazexqi commented 13 years ago

I see that running JUnit tests have a corresponding listener:

A test run listener that can be registered at
JUnitCore.addTestRunListener(TestRunListener) or as a contribution to the
org.eclipse.jdt.junit.testRunListeners extension point. The latter approach has
the advantage that the contributing plug-in is automatically loaded when a test
run starts. 

For executing a Java Application or Eclipse Application, I have not been able to find a generic listener. There is one for listening to JDT breakpoints but I am not sure how helpful that would be since the user might not be in debug mode all the time. There is the generic IVMRunner interface that we might be able to hook into but that would require changing the code in the org.eclipse.jdt.launching plug-in.

Wanderer777 commented 13 years ago

Fixed by commit f77760ee4906485eec4b02a35ea65eacee69724c