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 Gauti statistika jūsų Ruby on Rails kodas

Run this command from a command prompt inside your project directory: Vykdyti šią komandą iš komandų eilutės viduje savo projekto kataloge:

rake stats Grėbliai 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. Turėtumėte pamatyti, kad produkcija yra panašus į šį, nors kodo eilučių turbūt bus skirtingas, nes tai tik bandymas projektą. =) =)

 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
 | Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M | | Pavadinimas | Lines | LOC | Kursai | metodai | M / C | Loc / M | 
 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
 | Helpers              |    18 |    17 |       0 |       1 |   0 |    15 | | Pagalbininkai | 18 | 17 | 0 | 1 | 0 | 15 | 
 | Controllers          |   190 |   162 |       5 |      23 |   4 |     5 | | Kontroleriai | 190 | 162 | 5 | 23 | 4 | 5 | 
 | Components           |     0 |     0 |       0 |       0 |   0 |     0 | | Komponentai | 0 | 0 | 0 | 0 | 0 | 0 | 
 |   Functional tests   |   169 |   125 |       8 |      23 |   2 |     3 | | Funkciniai bandymai | 169 | 125 | 8 | 23 | 2 | 3 | 
 | Models               |   156 |   129 |       6 |      18 |   3 |     5 | | Modeliai | 156 | 129 | 6 | 18 | 3 | 5 | 
 |   Unit tests         |   110 |    85 |       5 |      12 |   2 |     5 | | Vienetas testai | 110 | 85 | 5 | 12 | 2 | 5 | 
 | Libraries            |     0 |     0 |       0 |       0 |   0 |     0 | | Bibliotekos | 0 | 0 | 0 | 0 | 0 | 0 | 
 |   Integration tests  |    44 |    35 |       1 |       2 |   2 |    15 | | Integration bandymai | 44 | 35 | 1 | 2 | 2 | 15 | 
 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
 | Total                |   687 |   553 |      25 |      79 |   3 |     5 | | Iš viso | 687 | 553 | 25 | 79 | 3 | 5 | 
 +----------------------+-------+-------+---------+---------+-----+-------+ +----------------------+-------+-------+---------+ ---------+-----+-------+ 
   Code LOC: 308     Test LOC: 245     Code to Test Ratio: 1:0.8 Kodas LOC: 308 Bandymo LOC: 245 Kodas Test Ratio: 1:0.8 
This article was originally written on 09/11/06 Tagged with: Šis straipsnis buvo parašytas ant 09/11/06 Tagged with: Ruby on Rails Ruby on Rails

Daily Email Updates Dienos paštas Atnaujinimai

You can get our how-to articles in your inbox each day for free. Galite gauti mūsų kaip prie straipsnių į Jūsų pašto dėžutę kasdien nemokamai. Just enter your name and email below: Tiesiog įveskite vardą ir elektroninio pašto adresą žemiau:


Name: Vardas:
Email: Paštas:

Leave a Comment Palikite komentarą




Leave your Palikite friendly draugiškas comment here. komentarus.

If you have a computer help question, Jei turite kompiuteryje Pagalba klausimą, click here to leave it on the forums Spauskite čia, jei norite palikti jį dėl forumai instead. vietoj.

Note: Your comment may not show up immediately on the site. Pastaba: Jūsų komentaras gali būti rodomas iš karto svetainėje.

Our Friends Mūsų draugai
Getting Started Paruo


About How-To Geek Apie How-To Geek
What Is That Process? Kas yra šis procesas?
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.