Cyclomatic complexity

Hi, Someone can help me?

I am using Rspec to create tests and Rcov to have some code coverage
information, however my client would like to have some information on
cyclomatic complexity. Can I use any option of Rcov to obtain it or
should I use another tool ?

How can I do this?

Thanks

2009/10/29 Elza M. [email protected]

Hi, Someone can help me?

I am using Rspec to create tests and Rcov to have some code coverage
information, however my client would like to have some information on cyclomatic
complexity. Can I use any option of Rcov to obtain it or should I use
another tool ?

How can I do this?

This is slightly off-topic, however, you should take a look at saikuro
[0]
for cyclomatic complexity. Or metric_fu [1] for the whole nine yards.

[0] http://saikuro.rubyforge.org/
[1] http://metric-fu.rubyforge.org/

Cheers,
Ben

On Oct 29, 2009, at 12:21 PM, Elza M. wrote:

Hi, Someone can help me?

I am using Rspec to create tests and Rcov to have some code coverage
information, however my client would like to have some information
on cyclomatic
complexity. Can I use any option of Rcov to obtain it or should I use
another tool ?

Try http://saikuro.rubyforge.org/. If this is for a rails app, try
http://metric-fu.rubyforge.org/
, which is a wrapper for rcov, saikuro, and several other measurement
tools.

HTH,
David