Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Get stats on your Ruby on Rails code Získajte štatistiky na vašom Ruby on Rails kódu

Run this command from a command prompt inside your project directory: Spustite tento príkaz z príkazového riadka v rámci svojho projektu adresára:

rake stats hrable stats

You should see output that looks similar to this, although the lines of code will probably be different, since this is just a test project. Mali by ste vidieť výstup, ktorý vyzerá podobne ako tento, aj keď riadkov kódu bude pravdepodobne líšiť, pretože to je len skúšobný projekt. =) =)

 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
 | Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M | | Meno | Linky | MKK | Triedy | Metódy | M / C | LOC / M | 
 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
 | Helpers              |    18 |    17 |       0 |       1 |   0 |    15 | | Pomocníci | 18 | 17 | 0 | 1 | 0 | 15 | 
 | Controllers          |   190 |   162 |       5 |      23 |   4 |     5 | | Radiče | 190 | 162 | 5 | 23 | 4 | 5 | 
 | Components           |     0 |     0 |       0 |       0 |   0 |     0 | | Zložky | 0 | 0 | 0 | 0 | 0 | 0 | 
 |   Functional tests   |   169 |   125 |       8 |      23 |   2 |     3 | | Funkčné testy | 169 | 125 | 8 | 23 | 2 | 3 | 
 | Models               |   156 |   129 |       6 |      18 |   3 |     5 | | Modely | 156 | 129 | 6 | 18 | 3 | 5 | 
 |   Unit tests         |   110 |    85 |       5 |      12 |   2 |     5 | | Jednotka testy | 110 | 85 | 5 | 12 | 2 | 5 | 
 | Libraries            |     0 |     0 |       0 |       0 |   0 |     0 | | Knižnice | 0 | 0 | 0 | 0 | 0 | 0 | 
 |   Integration tests  |    44 |    35 |       1 |       2 |   2 |    15 | | Integračné testy | 44 | 35 | 1 | 2 | 2 | 15 | 
 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
 | Total                |   687 |   553 |      25 |      79 |   3 |     5 | | Spolu | 687 | 553 | 25 | 79 | 3 | 5 | 
 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
   Code LOC: 308     Test LOC: 245     Code to Test Ratio: 1:0.8 Kód LOC: 308 Test LOC: 245 Kód Test pomer: 1:0.8 
This article was originally written on 09/11/06 Tagged with: Tento článok bol pôvodne napísaný na 09/11/06 Tagged s: Ruby on Rails Ruby on Rails

Daily Email Updates Denný Svářeč

You can get our how-to articles in your inbox each day for free. Môžete si naše jak-na články vo vašej schránky každý deň zadarmo. Just enter your name and email below: Stačí zadať svoje meno a e-mail nižšie:


Name: Meno:
Email: E-mail:

Our Friends Naši priatelia
Getting Started Začíname


About How-To Geek O tom, ako-To Geek
What Is That Process? Čo je to za proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe Dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe WMPNSCFG.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.