| 1 |
Feature: exclude directories from the analysis |
| 2 |
As a software developer in a large project |
| 3 |
I want to exclude some directories from the source code analysis |
| 4 |
In order to not analyse non-production code such as tests |
| 5 |
|
| 6 |
Scenario: excluding test directory |
| 7 |
Given I am in t/samples/multidir/<language> |
| 8 |
When I run "analizo metrics --exclude test ." |
| 9 |
Then the output must match "module: HelloWorld" |
| 10 |
And the output must not match "module: hello_test" |
| 11 |
Examples: |
| 12 |
| language | |
| 13 |
| cpp | |
| 14 |
| csharp | |
| 15 |
|
| 16 |
Scenario: excluding a list of directories |
| 17 |
Given I am in t/samples/multidir/<language> |
| 18 |
When I run "analizo metrics --exclude test:src ." |
| 19 |
Then the output must not match "module: HelloWorld" |
| 20 |
And the output must not match "module: hello_test" |
| 21 |
Examples: |
| 22 |
| language | |
| 23 |
| cpp | |
| 24 |
| csharp | |
| 25 |
|
| 26 |
Scenario: excluding src directory |
| 27 |
Given I am in t/samples/multidir/<language> |
| 28 |
When I run "analizo metrics --exclude src ." |
| 29 |
Then the output must match "module: hello_test" |
| 30 |
And the output must not match "module: HelloWorld" |
| 31 |
Examples: |
| 32 |
| language | |
| 33 |
| cpp | |
| 34 |
| csharp | |