Re: [java code coverage] Coverage data coming as 0% from one server and on tomcat it coming appropriate.

2014-01-09 Thread Marc R. Hoffmann
Please ask questions about SonarQube usage directly at their user list. Thx, -marc On 09.01.14 15:46, urayap...@gmail.com wrote: thanks marc its working. I downloaded the war from server and supplied as classes. it showed some coverage. One more question : I am using sonar-runner to run

Re: [java code coverage] Coverage data coming as 0% from one server and on tomcat it coming appropriate.

2014-01-10 Thread Marc R. Hoffmann
Hi, you can also put JAR files into the classesDirectory. Note that the ReportGenerator is a simple API usage example which is not designed to get used in production. You migth better rely on the Ant task or the Maven goar to create reports. See JaCoCo dicumentation:

Re: [java code coverage] Re: why am I getting small jacoco.xml files from my coverage tests?

2014-01-10 Thread Marc R. Hoffmann
...@hotmail.com wrote: On Thursday, January 9, 2014 11:05:10 AM UTC-7, Marc R. Hoffmann wrote: Hi Kevin, one problem is obiously exactly what the error message says: Class org/apache/maven/surefire/booter/TypeEncodedValue is already instrumented. Looks like you use the JaCoCo agent on offline

Re: [java code coverage] eclemma and jboss/wildfly?

2014-01-19 Thread Marc R. Hoffmann
could tell eclemma to write to a specific file it would maybe solve already my problem about the common file. But the problem with WTP and jboss is still unresolved (for me). bye hans On Sunday, January 19, 2014 11:02:00 AM UTC+1, Marc R. Hoffmann wrote: Hi, I don't know of a tutorial

Re: [java code coverage] Stack overflow/infinite recursion in jacocoInit?

2014-01-20 Thread Marc R. Hoffmann
Hi, this happens if JaCoCo itself gets instrumented org.jacoco.agent.rt.internal_6effb9e.core.data.ExecutionData.*$jacocoInit* Normally JaCoCo detects this and excludes its own classes from instrumentation. It can happen anyhow, if two different versions of JaCoCo are used at the same time.

Re: [java code coverage] How to integrate JaCoCo with Java Card?

2014-03-17 Thread Marc R. Hoffmann
Hi, I don't think it is possible to run code coverage analysis on the a card, as they use a different byte code format. I'm not familiar with Jcod, but probably you can also run your test code on a real JVM as Java card is a subset of Java EE. JaCoCo comes with comprehensive documentation

Re: [java code coverage] No session information available in report?

2014-03-20 Thread Marc R. Hoffmann
Hi Jesper, the report does not list any sessions or execution data this means either 1) The exec file is empty: If you open the exec file with an test editor (its binary) you should see strings with your class names. 2) No exec file has been provided to the report task: There should be an

Re: [java code coverage] Ant Report: Include/Exclude class files from jar files

2014-03-20 Thread Marc R. Hoffmann
Hi, this will not work as the filter applies to the JAR files itself and will obiously filter them out. But there are several options to solve this: 1) Unpack the JARs first 2) Use ANT's zipfileset to provide a filtered list of class files 3) Future versions of JaCoCo might come with a class

Re: [java code coverage] Jacoco : Multiple agents and single report

2014-03-21 Thread Marc R. Hoffmann
It is! If the different VMs are running on the same machine they could simply write to the same exec file. Fir this the agent parameter append has to be true (which is default. Alternatively you can merge multiple exec files into a single one before creating the report (see merge goal).

Re: [java code coverage] Jacoco.exec file generated with 1 KB data resulting 0% integration coverage in Sonar

2014-03-21 Thread Marc R. Hoffmann
Hi, you can open the exec file with Eclipse (when EclEmma is installed) to get an idea what classes have actually been sampled. Cheers, -marc On 21.03.14 12:02, chinpan...@gmail.com wrote: I have setup with Sonar 4.1.2, jacoco-0.6.0, JDK 1.7 and JBOSS EAP6. Following argument is set in JVM

Re: [java code coverage] How to get method coverage details in csv report

2014-03-21 Thread Marc R. Hoffmann
Hi Abhijith, your observation is correct. Due to the limited capabilities of the CSV file format it only contains coverage data on class level. If you need coverage information on method level (or even line level) I recommend working with the XML report. You can use e.g. XSLT to extract CSV

Re: [java code coverage] Jacoco report-integration for module with no classes

2014-03-22 Thread Marc R. Hoffmann
Hi, thanks for sharing your requirements and providing some ideas! JaCoCo does currently not support multi-module reports out of the box. For Maven builds there are just some work arounds like using the Ant plug-in. Please feel free to add your ideas to the open issue for multi-module

Re: [java code coverage] Fine Tuning Reports

2014-04-01 Thread Marc R. Hoffmann
Hi, filtering single lines from reports is currently not supported in JaCoCo. Future versions of JaCoCo might provide diffeent kind of filters to do so, we described use cases here: https://github.com/jacoco/jacoco/wiki/FilteringOptions Best regards, -marc On 01.04.14 23:26,

Re: [java code coverage] Fine Tuning Reports

2014-04-02 Thread Marc R. Hoffmann
Hi, to be honest: If I could answer your questions filtering would have already been implemented ;-) JaCoCo does not process any source code, it only works on class files. I would prefer to stick with this paradim also for filters. Best regards, -marc On 02.04.14 17:10,

Re: [java code coverage] eclemma / gwt / jacoco / sonar

2014-04-02 Thread Marc R. Hoffmann
Hi, unfortunatelly there is no way to convert emma.ec files to jacoco.exec files. Both files heavily depend on the instrumentation strategy of the tools (EMMA: Basic Blocks, JaCoCo: Control Flow Anaylsis). Best regards, -marc On 02.04.14 18:40, florian.kammerm...@gmail.com wrote: We

Re: [java code coverage] jacoco and rest calls called from the server

2014-04-10 Thread Marc R. Hoffmann
Hi, Re 1: You might have an issue with non-matching classes, find background information here: http://www.eclemma.org/jacoco/trunk/doc/classids.html Re 2: Yes, multiple VMs can dump to the same exec file or you can use the merge goal/task to combine multiple exec files into a single one.

Re: [java code coverage] Efficient coverage generation for individual Junit test executions

2014-04-12 Thread Marc R. Hoffmann
Hi Ashar, there is, but this requires some coding or investigation with other tools like Sonar: JaCoCo offers a runtime API (see here: http://www.eclemma.org/jacoco/trunk/doc/api/org/jacoco/agent/rt/package-summary.html) You could create your own test JUnit runner or listener which dumps

Re: [java code coverage] Error java.lang.NoClassDefFoundError:org/apache/http/cookie/Cookie using Emma with Android

2014-04-14 Thread Marc R. Hoffmann
Hi, this mailing list is for the EclEmma Eclipse plugin and the JaCoCo code coverage library (which is the library behind EclEmma since version 2.0). If you're looking for the Emma project the project's site is http://emma.sourceforge.net/ Otherwise can you please let us know what product

Re: [java code coverage] Maven plugin prepare-agent does not generate ${destFile} when Surefire forkMode=never

2014-04-14 Thread Marc R. Hoffmann
Hi, thanks for this report! In fact the JaCoCo agent can only be installed to a forked jvm. If now JaCoCo agent is installed no execution data is recorded and written to the *.exec file. Not sure how we can fix this in JaCoCo beside adding documentation to the prepare-agent goal? JaCoCo

Re: [java code coverage] Maven plugin prepare-agent does not generate ${destFile} when Surefire forkMode=never

2014-04-14 Thread Marc R. Hoffmann
have no clue whether this is a trivial task. Documenting the behavior is a simple workaround. Regards Mirko -- Sent from my mobile On Apr 14, 2014 8:30 PM, Marc R. Hoffmann hoffm...@mountainminds.com mailto:hoffm...@mountainminds.com wrote: Hi, thanks for this report! In fact

Re: [java code coverage] Running from the command line?

2014-04-27 Thread Marc R. Hoffmann
, Marc R. Hoffmann hoffm...@mountainminds.com wrote: Hi IK, you can run your application with code coverage from the command line using the JaCoCo agent, see http://www.eclemma.org/jacoco/trunk/doc/agent.html For report generation we do not (yet) have a command line option. You may use the Maven

Re: [java code coverage] Identifying the tests which exercise code

2014-05-05 Thread Marc R. Hoffmann
Hi, JaCoCo or EclEmma does not provide such a functionality. Please see this thread: https://groups.google.com/forum/#!topic/jacoco/04MOA-C22SM Best regard, -marc On 03.05.14 13:51, Graziella Galea wrote: Hi, EclEmma is usually used to determine how much of the main code is exercised by

Re: [java code coverage] 0% code coverage

2014-05-07 Thread Marc R. Hoffmann
Hi, please open the link Sessions on the top right corner of the coverage report. Can you see your classes under test listed here? Do the class entries have links to the coverage report? Best regards, -marc On 07.05.14 21:07, Dhiraj Mainali wrote: When running mvn clean install to get

Re: [java code coverage] Runtime reset

2014-05-09 Thread Marc R. Hoffmann
Hi Ron, simply pass true as the second parameter (reset) to the visitDumpCommand() method: https://github.com/jacoco/jacoco/blob/master/org.jacoco.core/src/org/jacoco/core/runtime/RemoteControlWriter.java#L54 Best regards, -marc On 09.05.14 07:42, teaser...@gmail.com wrote: Hi, The

Re: [java code coverage] [Jacoco] Multi module Maven itests transitive coverage

2014-05-19 Thread Marc R. Hoffmann
Hi, we have to separate two things: 1) Execution data sampling during test execution: The JaCoCo agent samples execution data for all classes loaded into the JVM, therefore also classes from the dependencies. 2) Coverage report generation: Our Maven report goal only considers the classes

Re: [java code coverage] How do I switch EclEmma to use the default Eclipse launcher instead of VisualVM?

2014-05-20 Thread Marc R. Hoffmann
Hi, the same way than in the launch/debug mode: In the coverage launch dialog there is a JRE tab to select the JRE. Best regards, -marc On 20.05.14 22:11, josh.david.frank...@gmail.com wrote: The topic title says it all. I've just installed EclEmma, and it does exactly what I need it to

Re: [java code coverage] Jacoco test coverage with maven and jetty

2014-05-30 Thread Marc R. Hoffmann
Hi, with app servers it is always tricky that the JVM actually gets attached to the right JVM (where your code under test is supposed to be executed). As a first step I recommend to verify that the created jacoco.exec file actually contains the classes under test. You can open the

Re: [java code coverage] Jacoco test coverage with maven and jetty

2014-06-03 Thread Marc R. Hoffmann
at the example project? - You can generate the .exec files using 'mvn verify' - You can generate the code coverage html reports using mvn verify site Thanks in advance. Regards, Dimitar On 30.05.2014 17:29, Marc R. Hoffmann wrote: Hi, with app servers it is always tricky that the JVM actually gets

Re: [java code coverage] Large .exec being generated

2014-06-11 Thread Marc R. Hoffmann
Hi, the reason for the big exec file is the org.sonar.java.JUnitListener you configured. It dumps all execution data after every single test case. This allows Sonar to createeorg.sonar.java.jacoco.JUnitListener a per test coverage report. If you just want to see the overall code coverage

Re: [java code coverage] Maven JaCoCo plugin not compatible with Surefire plugin with fork options

2014-06-21 Thread Marc R. Hoffmann
Hi, - what exactly do you want to do (POM)? - what is the error message you see? Best regards, -marc On 20.06.14 16:51, gurvan...@gmail.com wrote: Hi, I have the issue, but I don't get what would be the link with sonarqube ? This error happens only with surefire and jacoco and nothing sonar

Re: [java code coverage] Null

2014-07-02 Thread Marc R. Hoffmann
From the stack trace my first guess is that this is a Arquillian issue. Have already reported the problem to them? Best regards, -marc On 02.07.14 13:33, Johan van Kampen wrote: I use arquillian for unit / integration testing. I want to use jacoco for my code-coverage. However, as soon as I

Re: [java code coverage] TCP agent, merged reports, and SONAR...

2014-07-08 Thread Marc R. Hoffmann
Hi, I try to answer the JaCoCo some specific questions, for Sonar please check their mailing list. Will the report generated by the ExecutionDataClient be in a merged state, an appended state, will it be overwritten, or is this behavior determined by the append flag for each agent? The

Re: [java code coverage] Exclusion of methods in JaCoCo analysis report

2014-07-08 Thread Marc R. Hoffmann
of filter file. Many Thanks, On Thursday, 14 November 2013 14:03:16 UTC-8, Marc R. Hoffmann wrote: Hi Obi, we have a long list of requirements and ideas for all kind filtering options: https://github.com/jacoco/jacoco/wiki/FilteringOptions Unfortunatelly there is no near future plan

Re: [java code coverage] Exclusion of methods in JaCoCo analysis report

2014-07-08 Thread Marc R. Hoffmann
on. On Tuesday, 8 July 2014 13:16:06 UTC-7, pnage...@gmail.com wrote: Ant On Tuesday, 8 July 2014 13:15:14 UTC-7, Marc R. Hoffmann wrote: What build system are you using? Ant? Maven? -marc On 08.07.14 22:09, pnagesh@gmail.com wrote: Hi Marc, I have a query on filtering options.I have a bunch

Re: [java code coverage] How can I prevent anonymous classes in a JaCoCo coverage report?

2014-07-10 Thread Marc R. Hoffmann
Hi, what report are you refering to? JaCoCo HTML report? Regards, -marc On 10.07.14 16:33, Volker Berlin wrote: In the code coverage report that I receive from JaCoCo there are a large count of anonymous classes. Is it possible to summarize the result from anonymous classes to its parent

Re: [java code coverage] How can I prevent anonymous classes in a JaCoCo coverage report?

2014-07-11 Thread Marc R. Hoffmann
Hi, in case you're talking about the JaCoCo HTML report: On each package overview in the top right corner there is a link Source Files which will provide a list of source files only (all inner classes aggregated). If you can't see the source file link or can't see any line numbers please see

Re: [java code coverage] ERROR : Class org.apache.tools.ant.types.resources.Union doesn't support the nested file element

2014-07-11 Thread Marc R. Hoffmann
Hi Dhinesh, that's strange. Looks like your Ant installation does not know the built in type 'file'. * What version of Ant are you using? * Can you please provide your build file? Regards, -marc On 10.07.14 13:22, r.dhineshku...@gmail.com wrote: Hi, I am using JaCoCo with ANT task for

Re: [java code coverage] ERROR : Class org.apache.tools.ant.types.resources.Union doesn't support the nested file element

2014-07-11 Thread Marc R. Hoffmann
under the folder org.apache.tools.ant.types.resources Prerequisites for the JaCoCo Ant tasks require Ant 1.7.0 or higher. I am using apache-ant-1.8.2 version Thanks, Dhinesh On Friday, July 11, 2014 11:55:37 AM UTC+5:30, Marc R. Hoffmann wrote: Hi Dhinesh

Re: [java code coverage] ERROR : Class org.apache.tools.ant.types.resources.Union doesn't support the nested file element

2014-07-11 Thread Marc R. Hoffmann
version of Ant are you using? - I focused more on this are today. Thanks Dhinesh. On Friday, July 11, 2014 1:35:05 PM UTC+5:30, Marc R. Hoffmann wrote: To be honest I've no idea what's going on with your build. Please try using the file type outside JaCoCo e.g.: copy todir

Re: [java code coverage] How can I prevent anonymous classes in a JaCoCo coverage report?

2014-07-12 Thread Marc R. Hoffmann
settings? It seems that it is not the simple sum. Volker Am Freitag, 11. Juli 2014 08:15:41 UTC+2 schrieb Marc R. Hoffmann: Hi, in case you're talking about the JaCoCo HTML report: On each package overview in the top right corner there is a link Source Files which will provide a list

Re: [java code coverage] How to use jococo ant task with already compiled/build java code ?

2014-07-15 Thread Marc R. Hoffmann
What is the full error message please? Best regards, -marc On 15.07.14 09:47, kta...@gmail.com wrote: Hi guys , I am new to java and this plugin :) I am having the complete build/compiled java code with me for swtbot tests. Now i want to see what all code/features has been covered from

Re: [java code coverage] How to use jococo ant task with already compiled/build java code ?

2014-07-15 Thread Marc R. Hoffmann
On Tuesday, 15 July 2014 13:31:20 UTC+5:30, Marc R. Hoffmann wrote: What is the full error message please? Best regards, -marc On 15.07.14 09:47, kta...@gmail.com wrote: Hi guys , I am new to java and this plugin :) I am having the complete build/compiled java code with me

Re: [java code coverage] jacoco:report ant task failed with java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

2014-08-03 Thread Marc R. Hoffmann
Make sure you use jacocoant.jar of the JaCoCo download. This includes all dependencies. Best regards, -marc On 23.07.14 09:42, artkoshe...@gmail.com wrote: I suppose there are some conflicts in classpath, but don't know how to figure that out. -- You received this message because you are

Re: [java code coverage] jacoco:report ant task failed with java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

2014-08-06 Thread Marc R. Hoffmann
double-check that you don't use org.jacoco.ant-0.n.m..jar in your classpath. Best regards, -marc On 06.08.14 17:45, artkoshe...@gmail.com wrote: понедельник, 4 августа 2014 г., 2:31:42 UTC+4 пользователь Marc R. Hoffmann написал: Make sure you use jacocoant.jar of the JaCoCo download

Re: [java code coverage] jacoco:report ant task failed with java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

2014-08-06 Thread Marc R. Hoffmann
пользователь Marc R. Hoffmann написал: Hi, can you please provide the full stack trace? I don't think this problem can be related to jacocoant.jar. This JAR does not have any dependencies on package org.objectweb.asm. We repackage ASM into package org.jacoco.asm for the Ant standalone JAR to avoid

Re: [java code coverage] jacoco reports on static ini block element that is no longer in Java class

2014-08-06 Thread Marc R. Hoffmann
Hi Carlos, JaCoCo does not use any cache. Maybe you observe a compiler artifact here: For certain language constructs (e.g. switch on enums) the Java compiler creates a static initializer. Can you provide the source of the method where the coverage browser jumps to? Best regards, -marc On

Re: [java code coverage] How to use jococo ant task with already compiled/build java code ?

2014-08-06 Thread Marc R. Hoffmann
the Java packages * * * thanks On Tue, Jul 22, 2014 at 11:01 AM, Marc R. Hoffmann hoffm...@mountainminds.com mailto:hoffm...@mountainminds.com wrote: We have an FAQ item for this problem: http://www.eclemma.org/jacoco/trunk/doc/faq.html -marc

Re: [java code coverage] Error while creating report. Jacoco, TestNG Buildfile issue

2014-08-07 Thread Marc R. Hoffmann
What is the full error message when you run your build with -debug? Best regards, -marc On 08.08.14 04:25, Michael Miller wrote: I am learning to work with Jacoco to optimize code coverage but I am having trouble building the build file with Jacoco. I have read the tutorial at

Re: [java code coverage] Error running CoreTutorial

2014-08-16 Thread Marc R. Hoffmann
Ok, let's sort things out: 1) JaCoCo is a code coverage library which comes with integrations for Ant and Maven. 2) The letest JaCoCo release 0.7.1 depends on ASM 5.0.1 3) EclEmma is the Eclipse integration of JaCoCo. It incudes all required dependencies (in cluding ASM, excepts Eclipse of

Re: [java code coverage] How to plugin Eclemma to Tomcat application (without junit) , how to check code coverage run tomcat

2014-08-18 Thread Marc R. Hoffmann
In this case the classes in your Eclipse IDE a different from the classes executed in Tomcat. Please make sure you deploy the exact same classes from the Ecipse IDE. Best regards, -marc On 18.08.14 08:52, karnakarredd...@gmail.com wrote: I Open Execution Data, that classes are executed (i am

Re: [java code coverage] How to plugin Eclemma to Tomcat application (without junit) , how to check code coverage run tomcat

2014-08-18 Thread Marc R. Hoffmann
How do you create the classes in the WEB-INF/classes folder? Cheers, -marc On 18.08.14 09:18, karnakarredd...@gmail.com wrote: Can you please explain how to config tomcat pointing to eclipse .classes. my tomcat pointing to WEB-INF classes folder class -- You received this message because

Re: [java code coverage] jacoco

2014-08-23 Thread Marc R. Hoffmann
Hi Venessa, others integrated this before, see their examples: https://github.com/stephanenicolas/Quality-Tools-for-Android https://github.com/Godin/jacoco-experiments/tree/android/android Cheers, -marc On 22.08.14 20:41, venessa...@gmail.com wrote: Hello, I am trying to integrate jacoco

Re: [java code coverage] jacoco

2014-08-23 Thread Marc R. Hoffmann
. But those links are people who used maven to build the project.I am using ant with build.xml. There is no clear documentation on using jacoco with ant. Best, Venessa On Sat, Aug 23, 2014 at 7:08 AM, Marc R. Hoffmann hoffm...@mountainminds.com mailto:hoffm...@mountainminds.com wrote: Hi Venessa

Re: [java code coverage] does jacoco has some issues with hibernate?

2014-08-26 Thread Marc R. Hoffmann
Hi, it could be the case that Hibernate is confused by the additional fields JaCoCo adds to your beans. See FAQ: http://www.eclemma.org/jacoco/trunk/doc/faq.html You can verify this by excluding your entity beans from JaCoCo intrumentation with the excludes property. Best regards, -marc

Re: [java code coverage] It is possible to get coverage inter modules?

2014-09-09 Thread Marc R. Hoffmann
Ciao Theo, unfortunatelly this is a known limitation of the JaCoCo Maven plug-in: Right, using some Ant script is a possible work around, it might be possible to integrate this in the web module where the integration tests reside. Best regards, -marc On 09.09.14 20:13,

Re: [java code coverage] Jacoco javaagent from command line

2014-09-24 Thread Marc R. Hoffmann
How do you create the report? Regards, -marc On 24.09.14 17:27, chahid.is...@gmail.com wrote: Hello, Please i' trying to use jacoco javaagent arg from command line. For exemple, i'm compiling my class with javac MyClass then i do java -javaagent:/path/to/jacoco/jar MyClass the jacoco.exec is

Re: [java code coverage] Jacoco coverage formula

2014-09-24 Thread Marc R. Hoffmann
All counters are defined in the documentation: http://www.eclemma.org/jacoco/trunk/doc/counters.html Regards, -marc On 24.09.14 22:32, Issam CHAHID wrote: Hello, Please is anyone know about the formula used by Jacoco for coverage? Best regards, Issam -- You received this message because

Re: [java code coverage] Plug-in using Jacoco for Fault Localization

2014-09-29 Thread Marc R. Hoffmann
Hi, for all launches from Eclipse I would recommend using the Eclipse Launch/Debug framework. It provides you with all the infrastructure you need and also nicely integrates with the normal launchers. The online documentation is a pretty comprehensive entry point:

Re: [java code coverage] Why generate coverage report by class name

2014-10-17 Thread Marc R. Hoffmann
Hi, interesting questions. At first classes are analyzed separately, one by one. No matter if the same name or even id. For this the analyzer uses a simple output API: public interface ICoverageVisitor { /** * For analyzed class coverage data is emitted to this method. *

Re: [java code coverage] Coverage vs. Exceptions

2014-11-03 Thread Marc R. Hoffmann
Hi, we discussed this limitation many times before. Currently JaCoCo is designed to add the smallest possible overhead to the application under test as JaCoCo is mainly used for large scale projects. I like the idea of adding additional probes before every INVOKE* instruction as this is the

Re: [java code coverage] Re: jacoco and rest calls called from the server

2014-11-09 Thread Marc R. Hoffmann
It would be helpful to know how your services are deployed. What you need to do is to configure the JaCoCo agent for the JVM which host your services. Regards, -marc On 07.11.14 10:02, sobhana0...@gmail.com wrote: Can Someon please help me in knowing how to use jacoco tool for restful

Re: [java code coverage] I am trying to get Line Execution Count in the report

2014-11-09 Thread Marc R. Hoffmann
Hi, in the context of JaCoCo 'instructions' means bytecode instructions. Each source line with executable code maps to at least one instruction. As Java bytecode is very low-level, typically multiple instructions may be required to compile a single line of source code. JaCoCo also evaluates

Re: [java code coverage] Coverage vs. Exceptions

2014-11-10 Thread Marc R. Hoffmann
: 11187 probes - 28936 probes (2.6x) Runtime: 124% Coverage: +2.5% Jenkins Core: 101964 probes - 188196 probes (1.8x) Runtime: 102% Coverage: +0.0% Fitnesse: 66503 probes - 163509 probes (2.5x) Runtime: 100% Coverage: +0.3% Best regards, Carsten On Mon, Nov 3, 2014 at 9:31 PM, Marc R. Hoffmann

Re: [java code coverage] Re: Offline Instrumentation

2014-11-10 Thread Marc R. Hoffmann
Hi Howard, let's see how we can get you to level 100 of JaCoCo grandmaster. I should prepare batches for this ;-) Let me provide you with some pointers here: Running the raw files through the simple ExecDump.java API example from the EclEmma site showed probes/coverage exactly how I'd

Re: [java code coverage] Re: jacoco and rest calls called from the server

2014-11-10 Thread Marc R. Hoffmann
in Weblogic server , I include javaagent in setDomainenv.sh In the sessions link on the top right corner of report generated i have my class in the list of executed classes , but it is shown in black .I dont understand what am I missing , Thanks On Sun, Nov 9, 2014 at 8:28 PM, Marc R. Hoffmann

Re: [java code coverage] Instrument WAR file from command line

2014-11-11 Thread Marc R. Hoffmann
Hi, JaCoCo does not have a command line interface. You might create a Ant script or Maven project for this. Regards, -marc On 12.11.14 07:59, shahgo...@gmail.com wrote: Hi Guys, Is there any way I can instrument war file from command line. Also would appreciate if someone would let me

Re: [java code coverage] Fine Tuning Reports

2014-11-12 Thread Marc R. Hoffmann
. However in the html report the missed lines total is still unchanged, even though the the values for each row in the table is correct. How are these totals generated? Is there another counter to update. On Wednesday, April 2, 2014 4:01:29 PM UTC-5, Marc R. Hoffmann wrote: Hi, to be honest: If I

Re: [java code coverage] Functional Test Coverage using JaCoCo

2014-12-08 Thread Marc R. Hoffmann
The coverage data is written at the moment the JVM under test shuts down. Make sure the tomcat server is properly shut down, not just killed. Regards, -marc On 09.12.14 02:25, eajazal...@gmail.com wrote: Thanks Hoffman. When I use output=file, I just get a jacoco.exec of file size '0'. This

Re: [java code coverage] JaCoCo coverage check warns about non-existent class

2014-12-14 Thread Marc R. Hoffmann
Hi, this is a inner class. Try to exclude with a wildcard, this should also exclude inner classes: com.foo.bar.EntityMessageHandlerImpl* Regards, -marc On 11.12.14 23:04, sundar1...@gmail.com wrote: [WARNING] Rule violated for class com.foo.bar.EntityMessageHandlerImpl.1: lines covered

Re: [java code coverage] Functional Test Coverage using JaCoCo

2014-12-14 Thread Marc R. Hoffmann
-8, Marc R. Hoffmann wrote: The coverage data is written at the moment the JVM under test shuts down. Make sure the tomcat server is properly shut down, not just killed. Regards, -marc -- You received this message because you are subscribed to the Google Groups JaCoCo and EclEmma Users group

Re: [java code coverage] Functional Test Coverage using JaCoCo

2014-12-15 Thread Marc R. Hoffmann
Hi Aajaz, I think know I see the issue: You're using a quite old version of JaCoCo (more than 2 Years old). Can you please update to to 0.7.2? Thanks, -marc On 15.12.14 23:58, eajazal...@gmail.com wrote: Hi Marc, When I set this property jmx=true, I get the below error while starting the

Re: [java code coverage] Analyzed bundle '...' with 0 classes

2015-01-22 Thread Marc R. Hoffmann
Hi, currently our JaCoCo Maven plug-in works within single projects only: The report is created for the classes in Integration (which probably does not contain any main code at all). We have a pending feature reuest to support such multi-module scenarions. A possible work-around is to embed

Re: [java code coverage] javaagent dumponexit option

2015-03-18 Thread Marc R. Hoffmann
to use the remote protocol to ask for dump? Is it possible to ask for dump in the ReportGenerator.java file? Thanks for your help! On Tuesday, August 26, 2014 at 2:10:39 AM UTC+5:30, Marc R. Hoffmann wrote: Hi, good question: if dumponexit==false no coverage data is written at all

Re: [java code coverage] Exclude classpath libs from coverage.

2015-03-18 Thread Marc R. Hoffmann
of the folders that define the Java packages. On 17.03.15 09:52, luvra...@gmail.com wrote: On Friday, January 23, 2015 at 11:17:19 AM UTC+5:30, Marc R. Hoffmann wrote: Hi Pravin on-the-fly instrumentation is the recommended way as it simplifies test setups a lot. Every class is instrumented only once

Re: [java code coverage] java.util.UUID could not be build

2015-03-20 Thread Marc R. Hoffmann
Hi, looks like the aspectwerkz agent cannot handle the transformed versin on java/util/UUID. This JRE class is instrumented by the JaCoCo runtime. Maybe you ask at the aspectwerkz project how to exclude a specific class from instrumentation. Anyways, if aspectwerks also changes your classes

Re: [java code coverage] Re: Jacoco Library to the tomcat libs

2015-03-05 Thread Marc R. Hoffmann
please suggest if there is any other better way to read the report JaCoCo offers several ways to create a coverage report: 1) Ant 2) Maven 3) Eclipse 4) Java APIs In any case please make sure that the class files used for report generation are the same class files than the ones used at

Re: [java code coverage] Jcoco for Jar instrumentation and coverage generation

2015-03-10 Thread Marc R. Hoffmann
Where do you extract all JAR files from? Note that by default the JaCoCo reporting Ant task or Maven goal will recursively search EAR/WAR/JAR files for class files. Regards, -marc On 10.03.15 11:17, krishanth...@gmail.com wrote: Hi all, Can I use Jacoco for jar instrumentation without

Re: [java code coverage] Jcoco for Jar instrumentation and coverage generation

2015-03-12 Thread Marc R. Hoffmann
feedback really appreciated. Thanks, Krishantha. On Tue, Mar 10, 2015 at 9:05 PM, Marc R. Hoffmann hoffm...@mountainminds.com mailto:hoffm...@mountainminds.com wrote: Where do you extract all JAR files from? Note that by default the JaCoCo reporting Ant task or Maven goal

Re: [java code coverage] How to get information about how many times a class or method was executed ??

2015-03-12 Thread Marc R. Hoffmann
This is not supported by JaCoCo, use profilers for this. Regards, -marc -- You received this message because you are subscribed to the Google Groups JaCoCo and EclEmma Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [java code coverage] Generating Text File using .exec file

2015-03-26 Thread Marc R. Hoffmann
Hi, so you integrated your code into the Jenkins plugin? In this case please ask at the JaCoCo Jenkins plug-in project how the lifecycle of the plug-in works and how to hook into the buid process. Alternatively you coud e.g. create your own Maven or Ant plugin which gets executed with your

Re: [java code coverage] Export Session to XML EclEmma Plugin

2015-03-05 Thread Marc R. Hoffmann
Hallo Harald, by desing we avoid pretty formatting as this would cause a serious increase in size and also increase generation and parsing time. The XML report is not meant to be read by humans anyways. For manual inspection I recommend using a XML editor/viewer which allows showing the

Re: [java code coverage] Re: Export Session to XML EclEmma Plugin

2015-03-05 Thread Marc R. Hoffmann
Hi, again for efficiency the XML file only contains covered and missed item counters. Totals and percentage can be easily calculated: total = covered + missed coverage = covered / total See DTD for documentation of the XML format: http://www.eclemma.org/jacoco/trunk/coverage/report.dtd

Re: [java code coverage] jacoco gradle Filtering

2015-04-21 Thread Marc R. Hoffmann
Hi, the Gradle integration is done by the Gradle project itself. I recommend also asking at their forum: * http://gradle.org/docs/current/userguide/jacoco_plugin.html * http://discuss.gradle.org/c/bugs Regards, -marc On 21.04.15 00:30, sgov...@gmail.com wrote: Hello, I am using jacoco

Re: [java code coverage] Why does JaCoCo report uncovered lines which are in fact covered?

2015-04-29 Thread Marc R. Hoffmann
: http://www.eclemma.org/jacoco/trunk/doc/flow.html Regards, -marc On 29.04.15 21:42, mailant...@gmail.com wrote: Am Mittwoch, 29. April 2015 20:24:18 UTC+2 schrieb Marc R. Hoffmann: Hi, I don't know, what the SystemExitHandler in line 42 actually does, but if it does

Re: [java code coverage] com.sun classes are included in coverage report

2015-04-29 Thread Marc R. Hoffmann
Hi, if you exclude classes at the agent configuration this simply means that the agent does not collect execution data for those classes. If you want exclude classes from the report you have to filter those classes at report generation time. If you're working with the analyzer you need to

Re: [java code coverage] Why does JaCoCo report uncovered lines which are in fact covered?

2015-04-29 Thread Marc R. Hoffmann
Hi, I don't know, what the SystemExitHandler in line 42 actually does, but if it does a System.exit() and the method never returns the whole block is not marked as covered. This is a documented limitation, see our FAQ: http://www.eclemma.org/jacoco/trunk/doc/faq.html Code with

Re: [java code coverage] Why does JaCoCo report uncovered lines which are in fact covered?

2015-04-29 Thread Marc R. Hoffmann
GMT+02:00 Marc R. Hoffmann hoffm...@mountainminds.com mailto:hoffm...@mountainminds.com: It is a limitation by design: JaCoCo adds probes very sparingly to limit the runtime overhead. That's why it is the fastest coverage tool which scales also for *very* large code bases

Re: [java code coverage] Steps to use JaCoCo code for a sample java Test file ?

2015-05-12 Thread Marc R. Hoffmann
Hi, there is a ready-to use Eclipse integration for JaCoCo. It is called EclEmma and can be installed here: http://www.eclemma.org/installation.html EclEmma comes with a separate launch mode coverage which cannot be combined with debugging. Regards, -marc On 12.05.15 17:00, Yogesh

Re: [java code coverage] Braces counted as new lines

2015-05-15 Thread Marc R. Hoffmann
Hi, indeed the screen shoot looks strange. Have you also tried the native JaCoCo reports? What tool did you use to create the report? The JaCoCo Jenkins plugin? Regards, -marc On 14.05.15 19:44, yam.nex...@gmail.com wrote: Hi, Jacoco counts opening and closing braces as concrete lines and

Re: [java code coverage] Jacoco not excluding packages in the generated report

2015-04-08 Thread Marc R. Hoffmann
Hi, the example processes all files in the classesDirectory, see: analyzer.analyzeAll(classesDirectory); If you want to filter classes/packages you need to implement your own directory traversal mechanism and supply only those folders or class files which should be included in the

Re: [java code coverage] Jacoco code coverage is affected by AspectJ

2015-08-14 Thread Marc R. Hoffmann
not be found. Is there anything wrong with my configration? On Friday, August 14, 2015 at 4:04:56 PM UTC+8, Marc R. Hoffmann wrote: Hi, JaCoCo works on class files only. It reports whatever it sees in the class files which get instrumented and analyzed. Future versions might come

Re: [java code coverage] Individual Test Case Code Coverage

2015-10-26 Thread Marc R. Hoffmann
Hi, JaCoCo does not provide "per test coverage" out of the box as it is not aware of particular test frameworks. JaCoCo simply provides code coverage for any class files executed with a Java VM. Using JaCoCo APIs you could implement per-test coverage on your own for a specific test

Re: [java code coverage] Issue with Powermock using jacoco code coverage

2015-10-26 Thread Marc R. Hoffmann
Hi, you cannot combine offline instrumentation with the JaCoCo agent. This results in classes getting instrumented twice. See documentation http://eclemma.org/jacoco/trunk/doc/offline.html and our example project here: http://eclemma.org/jacoco/trunk/doc/examples/build/pom-offline.xml

Re: [java code coverage] Jacoco coverage report on maven multimodule

2015-10-26 Thread Marc R. Hoffmann
Hi, unfortunatelly JaCoCo does not yet support multi-module reports. Regards, -marc On 26.10.15 15:28, ghra...@gmail.com wrote: Hi , Our project is maven multi module. When I run mvn clean install it is generating jacoco report for each individual report. I wanted aggregate report. Here is

Re: [java code coverage] Do EclEmma version 2.3.2 support Eclipse 4.5 Mars?

2015-11-13 Thread Marc R. Hoffmann
Yes, it does. If you encounter any issues, please let us know. Regards, -marc On 13.11.15 09:46, pekka.jeska...@icloud.com wrote: Do EclEmma 2.3.2 support Eclipse 4.5 Mars? -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To

Re: [java code coverage] Do EclEmma version 2.3.2 support Eclipse 4.5 Mars?

2015-11-16 Thread Marc R. Hoffmann
and check "Java Code Coverage" on the "Comman Groups" tab. Regards, -marc On 16.11.15 21:02, billwoodso...@gmail.com wrote: On Friday, November 13, 2015 at 3:50:01 AM UTC-5, Marc R. Hoffmann wrote: Yes, it does. If you encounter any issues, please let us know. Regards, -mar

Re: [java code coverage] How to use code coverage data

2015-11-09 Thread Marc R. Hoffmann
Hi, this is quite an interesting question. Here are some recommendations from my personal experience: 1) If you don't actively maintain the application, just ignore the coverage reports. Writing test cases afterwards just for higher code coverage figures does not add any value. 2) If you

Re: [java code coverage] Individual Test Case Code Coverage

2015-11-02 Thread Marc R. Hoffmann
. Remote control via TCP/IP sockets, see example: http://eclemma.org/jacoco/trunk/doc/examples/java/ExecutionDataClient.java Regards, -marc On 30.10.15 11:59, sandeep.p...@gmail.com wrote: On Tuesday, October 27, 2015 at 2:48:26 AM UTC+5:30, Marc R. Hoffmann wrote: Hi, JaCoCo does not provide

Re: [java code coverage] Filtering options for coverage analysis

2015-10-19 Thread Marc R. Hoffmann
Hi, - this a 3 years old topic. what's blocking the jacoco team to provide this feature as a post-processing option (turned off by default)? Simply set: time and resources - what's the estimated difficulty for providing this feature for at least one of the many filters listed on the wiki?

Re: [java code coverage] jacoco-agent.properties with Android Studio project

2015-10-19 Thread Marc R. Hoffmann
Hi, the jacoco-agent.properties file has to be packaged in a way that it is on the Java classpath. Here is a working example for Android: https://github.com/Godin/jacoco-experiments/tree/android/android Regards, -marc On 17.10.15 06:41, vishy wrote: Hi guys, I am investigating

  1   2   3   >