This Question is Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
3 Replies Last post: May 24, 2013 9:39 PM by Fedor Buyvol-Kot  
Megan Vokal Newbie 2 posts since
May 17, 2013
Currently Being Moderated

May 17, 2013 6:00 PM

Cover with dotCover fails test that succeeds in Debug

I've run into an unusual problem that I haven't seem to be able to make any headway against. In one of my unit tests, I have a statement Assert.AreEqual(<property 1>, <property 2>). I have confirmed through debugging that these two values are equivalent. When I simply Run or Debug, this test succeeds. However, when I check for code coverage, the test fails. I'm using dotCover 2.5.559.25 (I previously used the latest released version, but upgraded in hopes it might resolve the issue). I've tried replacing my Assert statement with Assert.IsTrue(<expression that evaluates to true>), but I haven't had any luck. If anyone has encountered this problem and has recommendations for how to resolve it, I would appreciate your input.

Fedor Buyvol-Kot JetBrains 95 posts since
Dec 9, 2011
Currently Being Moderated
May 24, 2013 9:07 PM in response to: Megan Vokal
Re: Cover with dotCover fails test that succeeds in Debug

Hi Megan,

 

Sorry for the delayed answer.

Could you please reproduce this issue in a sample solution and send it to us?

Thanks in advance.

 

Regards.

Fedor Buyvol-Kot JetBrains 95 posts since
Dec 9, 2011
Currently Being Moderated
May 24, 2013 9:39 PM in response to: Megan Vokal
Re: Cover with dotCover fails test that succeeds in Debug

Megan,

 

Thanks for the info!
Glad to hear that you've found the reason for this problem.

 

Regards.

More Like This

  • Retrieving data ...