karma-runner / karma-runner/karma-coverage

karma excludes just one folder not path

Open
#416 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Hi All,
I have a case where my code lies as:
```
src
hapa
dm
lib
dir1
dir2
dir3
```
now, i just want to exclude dir3, but i want to keep dir1 and dir2 in includes,
is it possible to do something like [**/src/!(hapa/dm/lib/dir3)/**/*.js]: [coverage] ?
for me somehow its not working as we cannot use path in excludes.

Anyone has any idea?

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by tracing how karma-coverage handles include and exclude glob paths, then check whether an exclusion can target src/hapa/dm/lib/dir3 while retaining dir1 and dir2. Done means the requested directory-specific exclusion is supported or its limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.