Question

I need to find a way to automate some UI testing of .NET programs through ranorex and generate a summarized code coverage report in some form. I've been leaning towards using dotcover as the code coverage tool as it seems to be the simplest to automate tests for, being that it can just run an application and check the coverage after completion. Is there any way to generate a code coverage report using a ranorex test file and dotcover, and how? If this isn't possible, are there any suggestions for a tool other than dotcover capable of doing this? Preferably the application will be able to run on its own, without Visual Studio, but if it needs Visual Studio that's fine too.

Was it helpful?

Solution

To run dotCover on the command line then you need to create a file with all your arguments in it, follow these instructions. You will need to supply it with the the files/commands to run ranorex - see ranorex command line options

As it seems you can run ranorex on the command line then there are plenty of alternatives to dotCover available see What can I use for good quality Code Coverage for C#/.NET?

My personal favourite is OpenCover (for obvious reasons) but I have also used NCover, PartCover and dotCover to good effect in commercial environments.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top