Testing code branching coverage

  • Thread starter Carl Youngblood
  • Start date
C

Carl Youngblood

I'm wondering if it might be possible to write ruby code that could
dynamically check my classes for branches and keep track of each branch
during execution so that it could tell me how good the code coverage of
different execution paths was. In other words, I could run my ruby
script and it would print out the number of branches taken versus the
total number of possible branches.

I noticed that the ruby profiler is all written in Ruby, so I was
thinking it might be possible to write code that would do this without
having to modify my code. However, I am nowhere near enough of a Ruby
expert to take this one on. Anybody have any ideas?

Thanks,
Carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,352
Latest member
DianeKulik

Latest Threads

Top