Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to launch unit tests under EclEmma without using the VisualVM launcher with that launcher installed

I recently installed the "VisualVM Launcher" into my Eclipse IDE. After using that launcher to help profile some problems in my application, I tried to switch all of my configurations back to using the previous setup. However, whenever I launch my unit tests using "Coverage As -> JUnit Plug-in Test", it still seems to try to use the VisualVM launcher.

I don't see a place on the "Coverage Configurations" to specify which launcher to use. If I navigate to the preference page for default launchers ("Run/Debug -> Launching -> Default Launchers"), the [Debug] and [Run] modes under "JUnit Plug-in Test" are both set to use "JUnit Plugin Test Launcher".

Is there some other place where I can set the launcher for running "JUnit Plug-in Tests" under the test coverage tool (EclEmma)?

Version of Eclipse: Juno Service Release 1

like image 853
austinMLB Avatar asked Aug 16 '13 14:08

austinMLB


People also ask

How do I run test coverage in eclipse?

It is also available from the Eclipse Marketplace. After you have installed the plugin, you can run your tests using the new Coverage As launch configuration. This will display the code coverage in a convenient tree view as well as directly in your code.


1 Answers

I too have encountered this issue and have found no acceptable solution.

I know it is not much of an answer but I ended up uninstalling VisualVM and resorting to reinstalling it when I need it, for the duration I need.

like image 56
Emily L. Avatar answered Sep 28 '22 05:09

Emily L.