Page 1 of 1

Running Ranorex with Code Coverage

Posted: Tue Sep 11, 2012 10:55 pm
by ejang
Hello,

I am currently trying to figure out whether it is possible for Ranorex to compile a dll test file that NCover can take to check code coverage. It appears that NUnit framework is a common choice of unit test frame work to work with NCover, and NCover takes a dll test file. If this is not possible, is there another way to run NCover with Ranorex? If not, is there any code coverage analysis tool that works with Ranorex?

Thanks.

Re: Running Ranorex with Code Coverage

Posted: Wed Sep 12, 2012 7:37 am
by artur_gadomski
We tried out NCover simply by replacing all calls that start AUT with calls that start NCover that then starts AUT. Ranorex then does it's thing on controls and when AUT is closed NCover produces report.

Re: Running Ranorex with Code Coverage

Posted: Wed Sep 12, 2012 12:08 pm
by peterwald
Atur is correct about NCover 3. However, NCover 4 makes this process much simpler. Just set up a project in NCover 4 to collect coverage on your tested application every time it is executed. There should be no need to modify the testing script with NCover 4.

Feel free to contact us at [email protected] and we'll be happy to walk you through it.

Best Regards,
NCover Team