Running Ranorex with Code Coverage

Ask general questions here.
Posts: 1
Joined: Tue Sep 11, 2012 10:33 pm

Running Ranorex with Code Coverage

Post by ejang » Tue Sep 11, 2012 10:55 pm


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?


User avatar
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark

Re: Running Ranorex with Code Coverage

Post by artur_gadomski » Wed Sep 12, 2012 7:37 am

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.

Posts: 1
Joined: Wed Sep 12, 2012 12:03 pm

Re: Running Ranorex with Code Coverage

Post by peterwald » Wed Sep 12, 2012 12:08 pm

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