Eric Hodel (drbrain) wrote,
Eric Hodel

Code Metrics Graphs

I want us to write more tests at work, and everybody else here does too, but it hasn't happened. So, I want to show just how much trouble we are in regarding our tests. I took the code metrics stuff from the previous post, swirled it around and ran it through gnuplot.

First, here's our performance:

Robot Co-Op Code vs Test Chart

Next, here's Rails' performance:
Rails Code vs Test Chart

As you can see, we're horrible! Our best is about a 3:1 ratio between code and tests, which rapidly deteriorates.

Rails does much better, starting at around 4:1 and working upwards to better than 3:1.

While lines of code vs lines of test doesn't tell you anything about how well your tests are covered, having a 3:1 ratio is much better than having a 12:1 ratio.

Now I just need to finish hooking this in to the SVN commit hooks to have updated graphs.

Later I'll probably release my analysis scripts, they're really useful, and currently work with both svnlook and svn (and hopefully, soon p4 thanks to zenspider).

  • (no subject)

    I dreamed I was in a grocery store with my mom reading Seattle Weekly from sometime late at night until 11AM. The Seattle Weekly had an article about…

  • Free Microwave! (and stuff)

    I have a convection oven microwave (this means you could bake a cake in a metal pan in it) I'd like to get rid of. If you or anyone you know would…

  • Tools!

    Today I used several of my tools. My new Collector Vehicle plate arrived, so I retired the 948-MPC plates to my closet and attached the new plate.…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.