Hi Shekhar, JaCoCo does not require a main method. Actually it is the JVM which requires a main method to execute any Java program.
1) How do you run your application without JaCoCo? 2) What did you try to run the application with JaCoCo? It will be helpful if you provide your Ant scripts for both cases. Regards, -marc > On 21. Jun 2019, at 11:22, Shekhar <[email protected]> wrote: > > Hello, > > I am trying to find coverage of my automation testing code using Jacoco-ant > plugin. But the issue is my code base doesn't contain any Main method, so > when I run the Jacoco code coverage over it, it shows -"No Main method found, > please declare your main method as ...". > Is it possible for Jacoco to provide coverage when there are classes without > any main method or in any way is it possible to skip the check for main > method? > > Thanks > Shekhar > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/d88e5002-0a95-4671-bdb2-9b8912892ba0%40googlegroups.com. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8B32B55B-5149-435E-A62C-3CA60282DECE%40mountainminds.com.
