Code to Test Ratio Showdown
We had a little Code to Test Ratio showdown at the office today, probably because there was a woman present. It got me wondering what the Code to Test Ratio for other people is. So everybody, please post the CTTR of your current project in the comments.
Note: in Rails you can find your CTTR with rake stats.
Comments
Add your comment
In order to fight spam on this blog, posting comments from a browser without javascript is currently not supported.
Subscribe
Manfred Stienstra less than a minute later: (delete)
Code LOC: 451 Test LOC: 586 Code to Test Ratio: 1:1.3 ¶
Chris McGrath 5 minutes later: (delete)
Code LOC: 8058 Test LOC: 9985 Code to Test Ratio: 1.249 ¶
Chris McGrath 5 minutes later: (delete)
Oops, 1.239 :) ¶
rick 6 minutes later: (delete)
Mephisto:
Code LOC: 3527 Test LOC: 5025 Code to Test Ratio: 1:1.4 ¶
Norbert Crombach 31 minutes later: (delete)
Code LOC: 173 Test LOC: 202 Code to Test Ratio: 1:1.2 ¶
Jeffrey Hardy 38 minutes later: (delete | show email)
Code LOC: 1715 Test LOC: 2082 Code to Test Ratio: 1:1.2 ¶
Jordan McKible about 1 hour later: (delete | show email)
Code LOC: 3825 Test LOC: 4518 Code to Test Ratio: 1:1.2
Respectable, but Mephisto really shows me up.
Perhaps coverage should be considered as well? ¶
Thijs Cadier about 1 hour later: (delete | show email)
Code LOC: 732 Test LOC: 1189 Code to Test Ratio: 1:1.6
And no integration tests written yet :-) ¶
bryanl about 1 hour later: (delete | show email)
Code LOC: 36473 Test LOC: 14769 Code to Test Ratio: 1:0.4
I win! ¶
Matthijs Langenberg about 1 hour later: (delete)
Code LOC: 128 Test LOC: 362 Code to Test Ratio: 1:2.8 ¶
Matthijs Langenberg about 1 hour later: (delete)
FYI: In RSpec. ¶
Chad Humphries about 8 hours later: (delete | show email)
Code LOC: 1560 Test LOC: 6919 Code to Test Ratio: 1:4.4
RSpec 0.9.2 (Controller/Model/Helper/View/Lib Specs) ¶
Dovadi about 19 hours later: (delete)
Code LOC: 713 Test LOC: 1001 Code to Test Ratio: 1:1.4
Code LOC: 1338 Test LOC: 1844 Code to Test Ratio: 1:1.4 ¶
Julik about 20 hours later: (delete)
Code LOC: 1687 Test LOC: 1813 Code to Test Ratio: 1:1.1 ¶
Julik about 20 hours later: (delete)
BTW, if you get to this kind of showdown just inline all the AS::Multibyte test fixtures and multiply by the number of backends :-P will beat'em everyone ¶
Norbert Crombach about 21 hours later: (delete)
bryanl: what do you need 36k LOC for? ¶
p8 35 days later: (delete | show email)
Code LOC: 2944 Test LOC: 4509 Code to Test Ratio: 1:1.5 ¶
Alan 378 days later: (delete)
Code LOC: 569 Test LOC: 1662 Code to Test Ratio: 1:2.9
and am in the process of retro fitting tests at the moment. Do I win? ¶
Manfred Stienstra 378 days later: (delete)
There is no winning in the game of life (: ¶
Seamus Abshere 530 days later: (delete)
Code LOC: 7125 Test LOC: 9096 Code to Test Ratio: 1:1.3 ¶
Thijs van der Vossen 530 days later: (delete)
Our most recent project:
Code LOC: 1645 Test LOC: 3468 Code to Test Ratio: 1:2.1 ¶
Aaron Gough 623 days later: (delete)
Code LOC: 781 Test LOC: 1472 Code to Test Ratio: 1:1.9 ¶
bartzon 645 days later: (delete | show email)
Win!
Code LOC: 1181 Test LOC: 5772 Code to Test Ratio: 1:4.9
And, 98% code coverage as reported by rcov. ¶
david 689 days later: (delete)
Code LOC: 1238 Test LOC: 941 Code to Test Ratio: 1:0.8
Code coverage: 30%
I'm going to improve this rightaway !! ¶
Stewart Armbrecht 890 days later: (delete)
Code Blocks: 4205 Test Blocks: 18314 Code To Test Ration: 1:4.4
97.82% Code Coverage ¶
Mariana27Mccullough 1216 days later: (delete | show email)
I had a dream to begin my own business, however I did not earn enough amount of money to do it. Thank heaven my close fellow told to use the <a href="http://bestfinance-blog.com/topics/personal-loans">personal loans</a>. Thence I took the commercial loan and made real my old dream. ¶