This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
5 Replies Last post: Jul 31, 2013 9:31 PM by Fedor Buyvol-Kot  
Jason Rainwater Newbie 4 posts since
Jul 25, 2013
Currently Being Moderated

Jul 25, 2013 12:05 AM

Code Coverage using White.Core for unit testing WPF applications

Hi,

 

When I use the MSTest runner and analyze code coverage on a unit test that uses White.Core for automation testing of a wpf application it properly analyzes and shows me the coverage.

 

When i use DotCover 2.5 and Resharper 8 (This also did not work in DotCover 2.2 and Resharper 7.1.3) and run the same test with code coverage it does not do the coverage correctly.  It correctly covers normal tests but code that is executed via the White application does not.

 

Is there a setting or something that i am missing that enables this?  Does this capability just not exist?  I really want to use resharper for running unit tests exclusively but when i need to see coverage for the wpf ui tests using White.Core i have to switch to the mstest runner and i cannot see the full coverage of the application unless i run all coverage in the mstest runner.

Fedor Buyvol-Kot JetBrains 86 posts since
Dec 9, 2011
Currently Being Moderated
Jul 25, 2013 12:52 AM in response to: Jason Rainwater
Re: Code Coverage using White.Core for unit testing WPF applications

Hi Jason,

 

Could you please provide us with some sample solution illustrating this issue? It'll be very helpful for us. Or we can sign any NDA if needed and  you can share with us your working solution.
Thanks in advance.

Fedor Buyvol-Kot JetBrains 86 posts since
Dec 9, 2011
Currently Being Moderated
Jul 31, 2013 9:31 PM in response to: Jason Rainwater
Re: Code Coverage using White.Core for unit testing WPF applications

Hi Jason,

 

Sorry for the delayed answer.

I can't reproduce this issue neither with dotCover 2.2, nor dotCover 2.5 - the test passes and coverege report is done.
Could you provide some info about your environment? Namely: 

 

- OS version and bitness
- information from VS About dialog (Copy info).

- installed .Net frameworks versions (http://msdn.microsoft.com/en-us/library/hh925568.aspx)

Thanks in advance.
Regards.

More Like This

  • Retrieving data ...