A Faster Baboon

I recently updated XR.Baboon having changed the way coverage was recorded.

Previously the `covem` program would rely on catching method entry events and setting step requests on each line of a method. While this did work is was hugely expensive. Run time was multiplied by a factor of 5-10 times!

I’ve gone back to an earlier idea I attempted but couldn’t get working at first and that was to set a break point on each line of any method we want to cover and record each time it is reached. This is much more efficient and only appears to impact runtime by about a factor of 2!

Read more at github.

If your target system is windows rather than mono (and you have a windows system kicking about) then you might also want to look at OpenCover, a MIT license code coverage tool for c# on windows!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s