Let Me Test Your Rails/Ruby App

January 14th, 2009

I'm going to be doing some writing for a few magazines and I would like to write tests for you. If you have a part of your app that is particularly hard to test and you would like some help, send me the whole app or just the parts that are pertinent.

I know what you might be thinking, "Who does this guy think he is?" I'm a full time Rails developer on an application that must support Oracle and MySql. I also must interact with a Java side and a ten year old database. Here is the read out from 'rake stats' and 'time rake test.'

Unit tests: 1965 tests, 4358 assertions, 0 failures, 0 errors
Functional tests: 705 tests, 2567 assertions, 0 failures, 0 errors
Integration tests: 202 tests, 303 assertions, 0 failures, 0 errors
real	2m58.057s
user	2m13.305s
sys	0m12.093s

+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers          |  4361 |  3711 |      69 |     379 |   5 |     7 |
| Helpers              |  1025 |   852 |       0 |     127 |   0 |     4 |
| Models               |  4301 |  3490 |      87 |     460 |   5 |     5 |
| Libraries            |  7294 |  5192 |      78 |     483 |   6 |     8 |
| Integration tests    |  2004 |  1741 |      24 |      20 |   0 |    85 |
| Functional tests     |  7855 |  5878 |      97 |     564 |   5 |     8 |
| Unit tests           |  9356 |  7283 |     108 |     673 |   6 |     8 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                | 36196 | 28147 |     463 |    2706 |   5 |     8 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 13245     Test LOC: 14902     Code to Test Ratio: 1:1.1

You can hit me up on Twitter or email at gmail to amos.l.king.

1 Response to “Let Me Test Your Rails/Ruby App”

  1. Amos King Says:

    Mike( Confabulus in my blogroll) wants me to let everyone know he is planning on helping me on this little adventure.

Sorry, comments are closed for this article.