Code Coverage Is Not Working With PowerMockito + TestNG Testing Suit

273 views
Skip to first unread message

infomah...@gmail.com

unread,
May 29, 2016, 12:08:43 PM5/29/16
to JaCoCo and EclEmma Users
Hi All,

can you please help me out i have been using powermockito for my organisation everything is cool with Junit but now we are migrating to TestNG testing suit with is recommneded by one of our architect, everthing is good and well exception code coverage part with eclemma.

do you have any sample example that could help to overcome this problem now i am in situation where 99% work is done only 1% code coverage part is remain this is the only step where management focus on unfortunatley.

can you guys provide me suggestion or should i go for opening issue on githubb on eclemma for not supporting PowerMocktio + TestNG.


Thanks,
Mahboob Ali.

Marc R. Hoffmann

unread,
May 30, 2016, 2:11:16 AM5/30/16
to jac...@googlegroups.com
Hi,

running JaCoCo with Powermock is tricky in general when such tools
modify the classes under test.

So you're saying the setup was running fine with JUnit but not with
TestNG, correct? Then I recommend to examine what else has changed in
respect to Powermock usage, as JaCoCo should work for both unit-testing
frameworks.

If you can provide a standalone reproducer that demonstrates the problem
we can take a look at it.

Regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages