34 lines
1.3 KiB
Gherkin
34 lines
1.3 KiB
Gherkin
Feature: Context service ignore rule coverage
|
|
As a maintainer
|
|
I want ignore rule edge cases tested
|
|
So context_service branches stay protected
|
|
|
|
@coverage
|
|
Scenario: Skip default ignored cache files
|
|
Given a context service coverage workspace
|
|
When I try to add a default ignored file
|
|
Then the file is skipped without context entries
|
|
|
|
@coverage
|
|
Scenario: Apply .agentsignore directory and anchored rules
|
|
Given a context service coverage workspace
|
|
And a .agentsignore file with directory and anchored rules
|
|
When I check ignore status for matching files
|
|
Then the directory rule and anchored rule are both applied
|
|
|
|
@coverage
|
|
Scenario: Honor project include and exclude globs
|
|
Given a context service coverage workspace
|
|
And project include paths are set to allow only matching files
|
|
And project exclude paths block temporary files
|
|
When I check ignore status for included and excluded files
|
|
Then excluded files are ignored and included files allowed
|
|
And files outside the include globs are ignored
|
|
And paths outside the project are treated as non matches
|
|
|
|
@coverage
|
|
Scenario: Ignore checks skip unrelated base paths
|
|
Given a context service coverage workspace
|
|
When I run ignore matching against an unrelated base directory
|
|
Then non-relative paths are treated as not ignored
|