Eclipse 3.7.1 compatability with org.eclemma.

Narender
2012-06-22
2013-05-27
  • Narender

    Narender - 2012-06-22

    Is org.eclemma.runtime.equinox_1.1.0.200908261008 is compatible with eclipse 3.7.1 equinox launcher ?.
    right now i am getting  the below exception while running the  automated  junit test case

    14-Jun-2012 20:03:35  java-test:
    --redacted--
    14-Jun-2012 20:03:51        Exception in thread \"State Saver\" java.lang.NullPointerException
    14-Jun-2012 20:03:51                at org.eclipse.osgi.framework.internal.core.Framework.notifyFindHooksPriviledged(Framework.java:1099)
    14-Jun-2012 20:03:51                at org.eclipse.osgi.framework.internal.core.Framework.notifyFindHooks(Framework.java:1084)
    14-Jun-2012 20:03:51                at org.eclipse.osgi.framework.internal.core.Framework.getBundles(Framework.java:1077)
    14-Jun-2012 20:03:51                at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getBundles(BundleContextImpl.java:176)
    14-Jun-2012 20:03:51                at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveBundleDatas(BaseStorage.java:584)
    14-Jun-2012 20:03:51                at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveAllData(BaseStorage.java:457)
    14-Jun-2012 20:03:51                at org.eclipse.osgi.internal.baseadaptor.BaseStorage$StateSaver.run(BaseStorage.java:1304)
    14-Jun-2012 20:03:51                at java.lang.Thread.run(Thread.java:722)

     
    Last edit: Anonymous 2013-05-28
    • Narender

      Narender - 2013-05-27
       
  • Marc R. Hoffmann

    Hi,

    the Emma Equinox runtime is not maintained any more and I don't think it works for Eclipse 3.7. As mentioned in the description the Exquinox -Hook hass been superseeded by our JaCoCo library, which uses dynamic instrumentation based on a java agent.

    Best regards,
    -marc

     
  • Narender

    Narender - 2012-07-13

    hello Marc,

    Thanks for your reply.

    So there is no emma support for eclipse 3.7.1?

     
  • Marc R. Hoffmann

    If you really want to use EMMA there are other options to integrate it with Eclipse tests. For example you can instrument your bundles at build time.

    What is your exact use case? Why does JaCoCo or EclEmma not work for you?

    Best regards,
    -marc

     
  • Narender

    Narender - 2012-07-13

    Hello Marc,

    my use case is  to run the automated test cases in eclipse 3.7.1  build environment using emma code coverage tool,for that i have downloaded eclipse 3.7.1 test framework and  integarted in my build environment but the thing is still i am using the same equinox launcher plugin for emma which ever i was using for eclipse 3.6.2 .
    i am getting the below exception while using eclipse 3.7.1 with emma

    --redacted--
    org.eclipse.osgi.framework.internal.core.Framework.notifyFindHooksPriviledged(Framework.java:1099) 14-Jun-2012 20:03:51  at org.eclipse.osgi.framework.internal.core.Framework.notifyFindHooks(Framework.java:1084) 14-Jun-2012 20:03:51  at org.eclipse.osgi.framework.internal.core.Framework.getBundles(Framework.java:1077) 14-Jun-2012 20:03:51  at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getBundles(BundleContextImpl.java:176) 14-Jun-2012 20:03:51  at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveBundleDatas(BaseStorage.java:584) 14-Jun-2012 20:03:51  at org.eclipse.osgi.internal.baseadaptor.BaseStorage.saveAllData(BaseStorage.java:457) 14-Jun-2012 20:03:51  at org.eclipse.osgi.internal.baseadaptor.BaseStorage$StateSaver.run(BaseStorage.java:1304) 14-Jun-2012 20:03:51  at java.lang.Thread.run(Thread.java:722)

     
    Last edit: Anonymous 2013-05-28
  • Marc R. Hoffmann

    In this case I recommend to give JaCoCo a try. It will easily integrates in your build, is as fast as EMMA and shows branch coverage in addition.

    If you really want to stick with EMMA you can study documentation how you can manually instrument your bundles in your build.

    Cheers,
    -marc

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks