Warren Goldman | 17 May 21:30 2011

emma stopped working within eclipse

Clicking on the emma run icon gets me a popup;
The chosen operation is not currently available

Show View coverage gets me;
Could not create the view: Plug-in com.mountainminds.eclemma.ui was unable to 
load class com.mountainminds.eclemma.internal.ui.coverageview.CoverageView.

Details on this are;
java.lang.UnsupportedClassVersionError: Bad version number in .class file
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClas
sLoader.java:188)
	at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManage
r.java:580)
	at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathMana
ger.java:550)
	at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(Classpat
hManager.java:481)
	at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoa
der(ClasspathManager.java:469)
	at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathMan
ager.java:449)
	at 
(Continue reading)

Michael Giroux | 23 Mar 23:55 2006
Picon

Verbose XML report option

There is a question in the JUnit mailing list about generating a crossreference of JUnit test cases with lines of code that are covered.  It occurred to me that this could be done w/ Emma if the XML report included a list of lines that were covered. I wanted to point the user to Emma, but before I did, I wanted to verify that this might be possible.

I'm looking at the ReportGenerator.java module in com.vladium.emma.report.xml, and I'm sure that given enough time, I could figure out how to extend it to produce a verbose report including line coverage.

It would be much faster if there was a document that described the format of the EC file and/or the format of the data being delt with in the ReportGenerator.

Does such a document exist?  I've been poking around the CVS but do not see one yet.

Michael Giroux
vlad | 8 Jan 18:51 2005

EMMA-users mailing list to be disabled


It appears that most of EMMA related discussion is taking place via EMMA SourceForge forums (http://sourceforge.net/forum/?group_id=108932). Furthermore, viruses and spammers have become aware of the post address for EMMA-users. Due to limitations of GNU mailman software, I have to visit the admin pages frequently to manually clear the pending post queue from spam and viral submissions.

Given the above, I am going to close the list shortly. Please continue to use EMMA SourceForge  forums instead. You can get to them via EMMA's SourceForge project site or EMMA web site (note that SourceForge users can configure forums to send them posts by email). EMMA-announce list will continue to operate as long as the spam problem is not as severe.

Regards.
Vlad.
Martin Wegner | 23 Dec 03:34 2004
Picon

Thanks

To the team behind Emma,

Thanks a bunch.  I downloaded Emma and was instrumenting in 20 minutes.  I
couldn't believe how easy it was.  This is the first code coverage tool
that didn't feel painfully "heavy" (and I have tried quite a few).

Now one question: has anyone integrated Emma into Eclipse in some form? 
Or is there any advice for integrating Emaa into an Ant file that is going
to run under Eclipse?

Thanks.

--Marty

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
Solgrims | 15 Dec 23:03 2004
Picon

Maven plugin

Hi,

I've just started to use emma via the maven plugin and I must say: 
that's a great tool! I've used clover and jcoverage before (where clover 
is also great but more expensive ;-), but after upgrading my projects 
one by one to JDK 5.0 those failed to work. And it's good to see there 
are tools which don't get confused by new language features.

Two things I wanted to give you feedback about.

1. Maven is usually configured to have a repository in 
[USERHOME]/.maven/repository. But you may also configure it to have it's 
repository at [MAVENHOME]/.maven/repository (which ist the way I do it, 
actually). The maven-emma-plugin insists to have the repository under 
the USERHOME, so I had to create that (actually I still had a repository 
the, but that was some leftover garbage ... blame me for not cleaning 
up). After putting the jars there, too, everything worked fine. By the 
way: I'd like to be dependent of a special version (e.g. 2.0.4217), but 
that really is a minor issue.

2. The report generated by "maven emma:report" states on the class 
reporting level (where the different methods of a single class are 
listed) that "[source file 'de.mypackage.MyClass.java' not found in 
sourcepath]". Is there a property missing which I should have set? (I 
simply followed the instructions given in the net where to copy the 
jars, adding the dependencies and the run the goal.)

Regards,

Stefan Hedtfeld.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
Alexey N. Solofnenko | 22 Sep 22:05 2004

Output file locking does not save from OutOfMemoryError.

This what I tried in DataFactory:

    /*
     * input checked by the caller
     */
    private static void persist (final IMergeable data, final byte type, 
final File file)
        throws IOException
    {
        final Logger log = Logger.getLogger ();

        final File lock=new File(file.getPath()+".lock");
        final long start=System.currentTimeMillis();

        log.info ("locking "+lock.getAbsolutePath()+" for writing...");
        while (!lock.mkdirs() && 
(System.currentTimeMillis()-start)<MAX_DELAY) {
          try {
            Thread.sleep(100);
          }
          catch (InterruptedException ex) {
          }
        }
        try {
          if (lock.exists()) {
            lock.deleteOnExit();
            log.info ("locked in 
"+(System.currentTimeMillis()-start)+"ms.");
          }
          else {
            log.warning ("lock failed - timeout");
          }
          persist_(data, type, file);
        }
        finally {
          lock.delete();
          log.info ("Unlocked "+lock.getAbsolutePath());
        }
    }
    /*
     * input checked by the caller
     */
    private static void persist_ (final IMergeable data, final byte 
type, final File file)
        throws IOException
    {
....

But the result is still the same - OutOfMemoryError.

- Alexey.

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
Deepu Roy | 22 Sep 18:23 2004
Picon

User instrumentation

Hi,
Is there a feature in EMMA that allows me to
instrument a class file before EMMA instruments it. I
need to instrument classes to implement Serializable
so that I can save the instance states when running
tests. I also need to know the coverage of my tests.
Is there any way that I can make Emma use the classes
I instrumented for its instrumentation without
actually overwriting the .class files on disk.
Something like a decorator maybe?

Thanks,
Deepu.

		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
Sameer Sethi | 18 Aug 19:47 2004
Picon

Method name is not marked RED in the HTML report

Hi,
I have an instance of my HTML report where one of the class's method name is not marked RED, but all inside statements are marked RED. This method is never executed, hence it is accurate showing all statements in RED. But what is the significance that the method name is not marked the same.
the signature of this method looks like:
public String initQuery(String recurringFlag
                         , String startFixedFlag
                         , String endFixedFlag
                         , String repeatingFrequencyUOM
                         , String relativeStDateUOM
                         , String relativeEndDateUOM
                         , String startEvtBeforeAfter
                         , String endEvtBeforeAfter
 
                         )

thanks,
sameer

Attachment (sameer.sethi.vcf): text/x-vcard, 190 bytes
vlad | 16 Aug 14:45 2004

Re: Emma HTML report shows uncovered line although it is


Does _xaDataSource.getXAConnection(user, password) throw exception?



Please respond to emma-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

Sent by:        emma-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org

To:        <emma-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
cc:        

Subject:        [EMMA-users] Emma HTML report shows uncovered line although it is

I have a very simple class which delegate calls to an XADataSource.
Although the method getXAConnection(String userName, String password) is called (I see a log in the stdout), the HTML report shows is as uncovered (red lines).
Am I doing something wrong or is it a ... bug?
I attached the class.
Best regards
Massimo
<<source file>>

Ferrari Massimo | 16 Aug 10:38 2004
Picon

Emma HTML report shows uncovered line although it is

I have a very simple class which delegate calls to an XADataSource.
Although the method getXAConnection(String userName, String password) is called (I see a log in the
stdout), the HTML report shows is as uncovered (red lines).
Am I doing something wrong or is it a ... bug?
I attached the class.
Best regards
Massimo
Attachment (XADataSourceWrapper.java): application/octet-stream, 2343 bytes
Mike Kienenberger | 12 Aug 21:27 2004
Picon
Picon

Re: EMMA and jUnit

Oops.  First posted this before I was fully subscribed.

I've been doing a little more research, looking at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask, and it doesn't 
appear to just subclass org.apache.tools.ant.taskdefs.Java as I had 
expected.

Still, I'm hoping this is a fairly straightforward change.

I just don't know if I'm clever enough to make it.

I'm going to play around with it for a few minutes and see if it "just 
works" to change the superclass.

-Mike

Begin forwarded message:

From: Mike Kienenberger <mkienenb@...>
Date: Thu, 12 Aug 2004 15:11:32 -0400
To: emma-users@...
Subject: Re: EMMA and jUnit
Message-ID: <0408121511.AA3215621 <at> pavilion>
Status: RO

What I did was just to copy my junit task, and change it to run twice by 
removing junit-specific options (which appears to also be a subclass of the 
java task).

I've opened RFE 1007625 to request <emmajunit>.

I'm considering trying to implement such an emma task myself by copying 
<emmajava>, but I'm not sure I understand how to subclass ant tasks well 
enough to do this.   My first guess is that it's simply a matter of changing 

the superclass from <java> to <junit> since I don't see anything specific to 

<java> in the <emmajava> task.

-Mike

From: Ryan Bloom <rbb <at> re...>
 Re: EMMA and jUnit   
2004-07-19 07:30  
 The easiest way to do this is to use the instrument task.  Basically, the 
 steps you want to take are:

 1)  compile
 2)  instrument
 3)  run junit tests

 This will get your unit tests to output the coverage.ec and coverage.em 
 files, which are used to generate the coverage reports.  The users guide 
 goes into details about how to instrument your code.

 On Mon, 19 Jul 2004 SBrunning <at> tr... wrote:

 > I"m having a bit of trouble getting started with EMMA. I have a project 
with
 > an existing unit test suite, and I want to know how much of my project"s
 > code is covered.
 > 
 > Is there some way of getting EMMA"s code coverage checking to be run as a
 > side effect of the <junit> task?
 > 
 > If not, I"m assuming that I"ll need to run the tests twice, once for 
jUnit,
 > and once for EMMA. For the EMMA run, I"d need to set up a task to run 
unit
 > tests with the <emmajava> task. How do I get <emmajava> to run my unit 
tests
 > and nothing else?

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

Gmane