| 1 |
Feature: number of abstract classes |
| 2 |
As a software developer |
| 3 |
I want analizo to report the number of abstract classes in my code |
| 4 |
So that I can evaluate it |
| 5 |
|
| 6 |
Scenario: "Hello, world" project |
| 7 |
Given I am in t/samples/hello_world/<language> |
| 8 |
When I run "analizo metrics ." |
| 9 |
Then analizo must report that the project has total_abstract_classes = 0 |
| 10 |
Examples: |
| 11 |
| language | |
| 12 |
| cpp | |
| 13 |
| java | |
| 14 |
| csharp | |
| 15 |
|
| 16 |
Scenario: "Animals" project |
| 17 |
Given I am in t/samples/animals/<language> |
| 18 |
When I run "analizo metrics ." |
| 19 |
Then analizo must report that the project has total_abstract_classes = <total_abstract_classes> |
| 20 |
Examples: |
| 21 |
| language | total_abstract_classes | |
| 22 |
| cpp | 2 | |
| 23 |
| java | 2 | |
| 24 |
| csharp | 1 | |
| 25 |
|
| 26 |
Scenario: "Polygons" project |
| 27 |
Given I am in t/samples/polygons/<language> |
| 28 |
When I run "analizo metrics ." |
| 29 |
Then analizo must report that the project has total_abstract_classes = 2 |
| 30 |
Examples: |
| 31 |
| language | |
| 32 |
| cpp | |
| 33 |
| java | |
| 34 |
| csharp | |
| 35 |
|
| 36 |
Scenario: "AbstractClass" project |
| 37 |
Given I am in t/samples/abstract_class/<language> |
| 38 |
When I run "analizo metrics ." |
| 39 |
Then analizo must report that the project has total_abstract_classes = 1 |
| 40 |
And analizo must report that the project has total_methods_per_abstract_class = <total_mpac> |
| 41 |
Examples: |
| 42 |
| language | total_mpac | |
| 43 |
| java | 6 | |
| 44 |
| csharp | 1 | |