This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
5 Replies Last post: Apr 8, 2013 6:18 PM by Ekaterina Solovova  
Doron Feldman Newbie 2 posts since
Mar 10, 2013
Currently Being Moderated

Mar 10, 2013 5:37 PM

is it possible to run coverage on a process that is started by integration tests?

I'm trying to get code coverage of integration tests ran by nunit,

 

the tests run my server as an executable with Process.Start

and i want to be able to get coverage report in TeamCity.

 

It's seems that dotCover is not able to attach to the process started by the tests and get 0% coverage.

Is there a way to do something similar?

 

Thanks.

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012

Hello Doron,

 

Sorry for the delay!

By default dotCover gets coverage info from the main process being profiled and from all its child processes. So I guess that your scenario must work well. Please make sure that there are correct pdb-files in the directory from which you start your child process.

 

Best regards.

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012

Hello Doron,

 

I'm extremely sorry for the delay!

Unfortunately now there is no way to get a snapshot from a process that was killed. This issue is on our roadmap, but not for the nearest release.

Sorry for the inconvinience!

 

Best regards.

Matthew Overlund Newbie 1 posts since
Apr 6, 2013

Is there possibly a dotCover API that can be used to signal to the analyzer that the child process will be shut down shortly?

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012

Hello Matthew,

 

Unfortunately now dotCover doesn't have an API that could be used to perform this task.

More Like This

  • Retrieving data ...