I was interested to get path coverage for my code after doing unit testing, but it contains lots of if-else conditions which make the actual number of paths like around 67k so is there any possibility with jmockit coverage tool to exclude some if conditions to be considered for path in the code.
Is there any other tool which I can use to achieve the same goal ?
It looks like JMockit coverage allows you exclude code at the class level. See http://jmockit.googlecode.com/svn/trunk/www/tutorial/CodeCoverage.html. But I don't think there's a way to exclude anything at a lower level than the class.
For Cobertura, see Exclude methods from code coverage with Cobertura. Class level exclusions only, though.
However, note that a lot of people are moving away from Cobertura because it doesn't seem to be very actively developed anymore. JaCoCo seems to be the new favorite coverage tool. And it supports exclusions...see http://www.eclemma.org/jacoco/trunk/doc/agent.html. But again, only at the class level.