karma-runner / karma-runner/karma-coverage
karma coverage html not listing all files in subfolders
- Dominant language
- JavaScript
- Stars
- 771
- Forks
- 242
- PR merge metrics
- No merged PRs in 30d
Description
version:-
"karma-coverage": "^2.0.1"
settings:-
coverageReporter: {
type : 'html',
dir : 'coverage/'
}
path for source files:-
'../Web/Js/**/*.js': 'coverage',
When running the tests, the coverage is generated:-
But :
This is my coverage folder structure
```
[Coverage]
create-account-management.js.html
index.html
[Account]
--->[Components]
create-account.js.html
index.html
```
The Coverage folder index.html does not have any sub folder java script source links to view coverage.. In my case create-account.js.html cannot be reached from the outer index.html . The outer index.html has only create-account-management.js.html and not the inner folder javascript source files.
I was expecting the index,html to contain create-account.js.html and create-account-management.js.html links
Contributor guide
Research direction
Start with the reported coverageReporter HTML settings and the '../Web/Js/**/*.js' source glob. Reproduce the output, then inspect coverage/index.html alongside the nested Account/Components/index.html and create-account.js.html files. Done means the outer index.html links to coverage files in nested source folders as well as create-account-management.js.html.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100