テストの統計

C:\rails_app>rake stats ?
(in C:/rails_app/)
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers          |  2553 |  2182 |      25 |     228 |   9 |     7 |
| Helpers              |   707 |   629 |       0 |      49 |   0 |    10 |
| Models               |  1787 |  1410 |      25 |     162 |   6 |     6 |
| Libraries            |   124 |    95 |       1 |      17 |  17 |     3 |
| Components           |     0 |     0 |       0 |       0 |   0 |     0 |
| Integration tests    |     0 |     0 |       0 |       0 |   0 |     0 |
| Functional tests     |  3439 |  2828 |      45 |     351 |   7 |     6 |
| Unit tests           |  1347 |  1116 |      24 |     115 |   4 |     7 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                |  9957 |  8260 |     120 |     922 |   7 |     6 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 4316     Test LOC: 3944     Code to Test Ratio: 1:0.9

うーむ。「Code to Test Ratio: 1:0.9」か・・・。
あかんな・・。もっとテスト書こう。


※試した環境
Rails1.2.3
Ruby1.8.6
OS WindowsXP