Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2297 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] Renaming the "Functionals" and "Units" statistics in the output of 'rake stats' to "Functional tests" and "Unit tests", respectively

Reported by: lasse.koskela@gmail.com Assigned to: David
Priority: low Milestone:
Component: Railties Version: 0.13.1
Severity: trivial Keywords: rake stats functionals units
Cc:

Description

The current output of 'rake stats' produces a table such as the following:

+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Helpers              |    16 |    13 |       0 |       1 |   0 |    11 |
| Controllers          |   259 |   212 |       5 |      28 |   5 |     5 |
| APIs                 |     0 |     0 |       0 |       0 |   0 |     0 |
| Components           |     0 |     0 |       0 |       0 |   0 |     0 |
|   Functionals        |   254 |   197 |       8 |      30 |   3 |     4 |
| Models               |   135 |   105 |       6 |      17 |   2 |     4 |
|   Units              |   125 |    97 |       5 |      16 |   3 |     4 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                |   789 |   624 |      24 |      92 |   3 |     4 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 624     Test LOC: 0     Code to Test Ratio: 1:0.0

The "Functionals" and "Units" rows are a bit unclear on their meaning. This patch renames those rows in the output to "Functional tests" and "Unit tests".

Attachments

rake_stats_names_for_tests_patch.diff (2.3 kB) - added by lasse.koskela@gmail.com on 09/25/05 08:47:59.

Change History

09/25/05 08:47:59 changed by lasse.koskela@gmail.com

  • attachment rake_stats_names_for_tests_patch.diff added.

09/25/05 08:52:01 changed by anonymous

  • summary changed from Renaming the "Functionals" and "Units" statistics in the output of 'rake stats' to "Functional tests" and "Unit tests", respectively to [PATCH] Renaming the "Functionals" and "Units" statistics in the output of 'rake stats' to "Functional tests" and "Unit tests", respectively.

09/27/05 22:10:40 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

Changeset [2373].