Re: CRAP for C++ ?

Adam Sroka <[email protected]>
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
On Tue, Nov 3, 2009 at 5:35 AM, Srdjan Todorovic
<[email protected]> wrote:
>
>
>
> Hello,
>
> On 02/11/2009, Adam Sroka <[email protected]> wrote:
> > AFAIK, crap4j is the only widely adopted implementation, written by
> > the guys who invented the metric. There was talk of someone creating a
> > C# port. However, you can implement it yourself. All you need is
> > coverage and cyclomatic complexity. Then, apply the formula:
> >
> > CRAP(m) = comp(m)^2 * (1 – cov(m)/100)^3 + comp(m)
> >
> > where comp(m) is cyclomatic complexity and cov(m) is test coverage.
>
> Yes but I'd need some way of automatically obtaining the test coverage
> and cyclomatic complexity.
>

Here are some to start with:

http://covtool.sourceforge.net/
http://cccc.sourceforge.net/

However, as with anything in C/C++ it depends. What platform are you
developing on? What platform are you targeting? What IDE and/or
toolchain do you use? Does it need to be open source? (The two I
mentioned are.) How much do you want to pay? If you know the answers
to those questions then Google has quite a few results for both MCC
and coverage.


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.