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
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