tag:blogger.com,1999:blog-1033530409924258628.post2094443315040443400..comments2024-01-17T18:18:36.889-05:00Comments on Furious Purpose: Eclipse Code Coverage with EclEmmaGeoffrey Wisemanhttp://www.blogger.com/profile/05205826495553720705noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1033530409924258628.post-27032979755150698352008-12-02T05:21:00.000-05:002008-12-02T05:21:00.000-05:00Hello,i use EclEmma, its great. But i have a probl...Hello,<BR/><BR/>i use EclEmma, its great. But i have a problem by exporting the report. The wizard show that it complete but i cant see any report. <BR/><BR/>Im looking forward for Helps.<BR/><BR/>RegardsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1033530409924258628.post-43882396463865920642008-11-12T07:38:00.000-05:002008-11-12T07:38:00.000-05:00I am a new user of EclEMMA.It is really a nice too...I am a new user of EclEMMA.It is really a nice tool.<BR/>Can anyone help me resolving the following issues?(it may sound as silly questions to you)<BR/>1)I am working on an existing framework. My code uses the Out of the box code as well.In simpler terms my source code is dependent on the framework base code which exists in a differnt project in the eclipse workspace.How can see the coverage of my code? Although I am able to view the coverage of my Unit tester as 100% but my source code coverage is shown as 0%.I am facing this issue even my sourcecode and testers are in same or different projects.<BR/>2)How can I go for instumentation of classes and kindly let me know the advantages of this? <BR/><BR/>It would be great if someone can come forward to help me out.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1033530409924258628.post-44371054666482885912008-10-10T08:56:00.000-05:002008-10-10T08:56:00.000-05:00Well, in the simplest scenario it's basically the ...Well, in the simplest scenario it's basically the same -- if you have unit tests that exercise the code, you simply run these to validate code coverage.<BR/><BR/>Now if you want to verify the coverage of web templates (e.g. JSPs) or of acceptance tests running against an application in-container, that's another story. I don't know a great solution to either of those, although it might be possible to use coverage tools for in-container coverage (although I've never tried).Geoffrey Wisemanhttps://www.blogger.com/profile/05205826495553720705noreply@blogger.comtag:blogger.com,1999:blog-1033530409924258628.post-54651186859942307482008-10-10T04:57:00.000-05:002008-10-10T04:57:00.000-05:00A nice article. Lot of information. I have a small...A nice article. Lot of information. I have a small problem, though. I plugged in EclEmma to Eclipse and it works fine for stand alone applications. How does it work for web applications?Alokhttps://www.blogger.com/profile/10624073878183032930noreply@blogger.comtag:blogger.com,1999:blog-1033530409924258628.post-30687274693659939292007-11-25T03:38:00.000-05:002007-11-25T03:38:00.000-05:00As you note, there is a way to instrument subsets,...As you note, there is a way to instrument subsets, though I wouldn't myself characterize it as a workaround. You need to configure your build path so that your source folders have different output folders. On the Java Build Path pane, select the Source tab and make sure that "Allow output folders for source folders" is checked. Then go to your src-test (or whatever) folder and expand it. You should see "Output folder: ..." Select that and choose edit, and override the default by changing it to classes-test or something like that. That should do it. Minor change and one that probably makes sense anyway, even without EclEmma.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1033530409924258628.post-53151442969447349122007-02-20T11:45:00.000-05:002007-02-20T11:45:00.000-05:00So far, so good. Easily installed and tested. Th...So far, so good. Easily installed and tested. There's a few things I'd like to see changed:<BR/><BR/>I'd like to be able to filter in the coverage view; if I'm working with a single test, I already know that mos of the project isn't covered, but I'd like to be able to see the coverage of one or two classes that the test does hit.<BR/><BR/>Also, if all your eclipse compiled class files go into the same directory, you can instrument all or none. It'd be nice to be able to instrument subsets. For instance, I don't want to know the coverage of my unit tests. There's a workaround, but I'd rather not change my project/eclipse configuration significantly to use the tool.<BR/><BR/><BR/>That doesn't stop me from enjoying what's already there; this is a nice addition to the toolbox.Geoffrey Wisemanhttps://www.blogger.com/profile/05205826495553720705noreply@blogger.com