We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to test the coverage of this project. At first, I used nyc, but the lines coverage is zero:
^C-------------------------------------------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------------------------------------------------|---------|----------|---------|---------|------------------- All files | 0 | 0 | 0 | 0 | spring-petclinic-angular | 0 | 100 | 0 | 0 | karma.conf.js | 0 | 100 | 0 | 0 | 4-5 protractor.conf.js | 0 | 100 | 0 | 0 | 4-26 spring-petclinic-angular/docs/js | 0 | 0 | 0 | 0 | compodoc.js | 0 | 100 | 0 | 0 | 1-11 lazy-load-graphs.js | 0 | 0 | 0 | 0 | 1-41 menu-wc.js | 0 | 0 | 0 | 0 | 4-494 menu.js | 0 | 0 | 0 | 0 | 1-255 routes.js | 0 | 0 | 0 | 0 | 1-276 sourceCode.js | 0 | 0 | 0 | 0 | 1-54 svg-pan-zoom.controls.js | 0 | 0 | 0 | 0 | 1-49 tabs.js | 0 | 0 | 0 | 0 | 1-16 tree.js | 0 | 0 | 0 | 0 | 1-145 spring-petclinic-angular/docs/js/libs | 0 | 0 | 0 | 0 | EventDispatcher.js | 0 | 0 | 0 | 0 | 5 bootstrap-native.js | 0 | 0 | 0 | 0 | 2 clipboard.min.js | 0 | 0 | 0 | 0 | 7 custom-elements-es5-adapter.js | 0 | 0 | 0 | 0 | 10-13 custom-elements.min.js | 0 | 0 | 0 | 0 | 1-37 d3.v3.min.js | 0 | 0 | 0 | 0 | 2 deep-iterator.js | 0 | 0 | 0 | 0 | 1-2 es6-shim.min.js | 0 | 0 | 0 | 0 | 10-11 htmlparser.js | 0 | 0 | 0 | 0 | 23 innersvg.js | 0 | 0 | 0 | 0 | 9 lit-html.js | 0 | 0 | 0 | 0 | 1 prism.js | 0 | 0 | 0 | 0 | 2-14 promise.min.js | 0 | 0 | 0 | 0 | 6 svg-pan-zoom.min.js | 0 | 0 | 0 | 0 | 3 tablesort.min.js | 0 | 0 | 0 | 0 | 6 tablesort.number.min.js | 0 | 0 | 0 | 0 | 6 vis.min.js | 0 | 0 | 0 | 0 | 25-46 zepto.min.js | 0 | 0 | 0 | 0 | 2 spring-petclinic-angular/docs/js/routes | 0 | 100 | 100 | 0 | routes_index.js | 0 | 100 | 100 | 0 | 1 spring-petclinic-angular/docs/js/search | 0 | 0 | 0 | 0 | lunr.min.js | 0 | 0 | 0 | 0 | 6 search-lunr.js | 0 | 0 | 0 | 0 | 1-62 search.js | 0 | 0 | 0 | 0 | 1-268 search_index.js | 0 | 100 | 100 | 0 | 1 spring-petclinic-angular/e2e | 0 | 100 | 0 | 0 | app.e2e-spec.ts | 0 | 100 | 0 | 0 | 22-34 app.po.ts | 0 | 100 | 0 | 0 | 23-27 spring-petclinic-angular/src | 0 | 0 | 0 | 0 | main.ts | 0 | 0 | 0 | 0 | 26-31 polyfills.ts | 0 | 0 | 0 | 0 | test.ts | 0 | 100 | 100 | 0 | 13-20 spring-petclinic-angular/src/app | 0 | 100 | 0 | 0 | app.component.spec.ts | 0 | 100 | 0 | 0 | 30-44 spring-petclinic-angular/src/app/owners | 0 | 100 | 0 | 0 | owner.service.spec.ts | 0 | 100 | 0 | 0 | 44-198 owner.ts | 0 | 0 | 0 | 0 | spring-petclinic-angular/src/app/owners/owner-add | 0 | 100 | 0 | 0 | owner-add.component.spec.ts | 0 | 100 | 0 | 0 | 41-105 spring-petclinic-angular/src/app/owners/owner-detail | 0 | 100 | 0 | 0 | owner-detail.component.spec.ts | 0 | 100 | 0 | 0 | 40-131 spring-petclinic-angular/src/app/owners/owner-edit | 0 | 100 | 0 | 0 | owner-edit.component.spec.ts | 0 | 100 | 0 | 0 | 45-97 spring-petclinic-angular/src/app/owners/owner-list | 0 | 100 | 0 | 0 | owner-list.component.spec.ts | 0 | 100 | 0 | 0 | 49-136 spring-petclinic-angular/src/app/parts/page-not-found | 0 | 100 | 0 | 0 | page-not-found.component.spec.ts | 0 | 100 | 0 | 0 | 29-47 spring-petclinic-angular/src/app/parts/welcome | 0 | 100 | 0 | 0 | welcome.component.spec.ts | 0 | 100 | 0 | 0 | 30-48 spring-petclinic-angular/src/app/pets | 0 | 100 | 0 | 0 | pet.service.spec.ts | 0 | 100 | 0 | 0 | 31-41 pet.ts | 0 | 0 | 0 | 0 | spring-petclinic-angular/src/app/pets/pet-add | 0 | 100 | 0 | 0 | pet-add.component.spec.ts | 0 | 100 | 0 | 0 | 45-112 spring-petclinic-angular/src/app/pets/pet-edit | 0 | 100 | 0 | 0 | pet-edit.component.spec.ts | 0 | 100 | 0 | 0 | 48-112 spring-petclinic-angular/src/app/pets/pet-list | 0 | 100 | 0 | 0 | pet-list.component.spec.ts | 0 | 100 | 0 | 0 | 39-99 spring-petclinic-angular/src/app/pettypes | 0 | 100 | 0 | 0 | pettype.service.spec.ts | 0 | 100 | 0 | 0 | 30-40 pettype.ts | 0 | 0 | 0 | 0 | spring-petclinic-angular/src/app/pettypes/pettype-add | 0 | 100 | 0 | 0 | pettype-add.component.spec.ts | 0 | 100 | 0 | 0 | 15-56 spring-petclinic-angular/src/app/pettypes/pettype-edit | 0 | 100 | 0 | 0 | pettype-edit.component.spec.ts | 0 | 100 | 0 | 0 | 15-57 spring-petclinic-angular/src/app/pettypes/pettype-list | 0 | 100 | 0 | 0 | pettype-list.component.spec.ts | 0 | 100 | 0 | 0 | 15-71 spring-petclinic-angular/src/app/specialties | 0 | 100 | 0 | 0 | specialty.service.spec.ts | 0 | 100 | 0 | 0 | 30-40 specialty.ts | 0 | 0 | 0 | 0 | spring-petclinic-angular/src/app/specialties/specialty-add | 0 | 100 | 0 | 0 | specialty-add.component.spec.ts | 0 | 100 | 0 | 0 | 15-72 spring-petclinic-angular/src/app/specialties/specialty-edit | 0 | 100 | 0 | 0 | specialty-edit.component.spec.ts | 0 | 100 | 0 | 0 | 38-79 spring-petclinic-angular/src/app/specialties/specialty-list | 0 | 100 | 0 | 0 | specialty-list.component.spec.ts | 0 | 100 | 0 | 0 | 39-94 spring-petclinic-angular/src/app/vets | 0 | 100 | 0 | 0 | vet.service.spec.ts | 0 | 100 | 0 | 0 | 30-40 vet.ts | 0 | 0 | 0 | 0 | spring-petclinic-angular/src/app/vets/vet-add | 0 | 100 | 0 | 0 | vet-add.component.spec.ts | 0 | 100 | 0 | 0 | 31-47 spring-petclinic-angular/src/app/vets/vet-edit | 0 | 100 | 0 | 0 | vet-edit.component.spec.ts | 0 | 100 | 0 | 0 | 31-47 spring-petclinic-angular/src/app/vets/vet-list | 0 | 100 | 0 | 0 | vet-list.component.spec.ts | 0 | 100 | 0 | 0 | 38-69 spring-petclinic-angular/src/app/visits | 0 | 100 | 0 | 0 | visit.service.spec.ts | 0 | 100 | 0 | 0 | 30-40 visit.ts | 0 | 0 | 0 | 0 | spring-petclinic-angular/src/app/visits/visit-add | 0 | 100 | 0 | 0 | visit-add.component.spec.ts | 0 | 100 | 0 | 0 | 43-109 spring-petclinic-angular/src/app/visits/visit-edit | 0 | 100 | 0 | 0 | visit-edit.component.spec.ts | 0 | 100 | 0 | 0 | 44-116 spring-petclinic-angular/src/app/visits/visit-list | 0 | 100 | 0 | 0 | visit-list.component.spec.ts | 0 | 100 | 0 | 0 | 40-111 spring-petclinic-angular/src/environments | 0 | 100 | 100 | 0 | environment.prod.ts | 0 | 100 | 100 | 0 | 23 environment.ts | 0 | 100 | 100 | 0 | 24 -------------------------------------------------------------|---------|----------|---------|---------|-------------------
so I try to use c8, but the coverage is all 0:
^C-------------------------------------------------------------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------------------------------------------------|---------|----------|---------|---------|------------------- All files | 0 | 0 | 0 | 0 | spring-petclinic-angular | 0 | 0 | 0 | 0 | karma.conf.js | 0 | 0 | 0 | 0 | 1-38 protractor.conf.js | 0 | 0 | 0 | 0 | 1-28 spring-petclinic-angular/docs/js | 0 | 0 | 0 | 0 | compodoc.js | 0 | 0 | 0 | 0 | 1-14 lazy-load-graphs.js | 0 | 0 | 0 | 0 | 1-44 menu-wc.js | 0 | 0 | 0 | 0 | 1-496 menu.js | 0 | 0 | 0 | 0 | 1-261 routes.js | 0 | 0 | 0 | 0 | 1-280 sourceCode.js | 0 | 0 | 0 | 0 | 1-58 svg-pan-zoom.controls.js | 0 | 0 | 0 | 0 | 1-53 tabs.js | 0 | 0 | 0 | 0 | 1-21 tree.js | 0 | 0 | 0 | 0 | 1-147 spring-petclinic-angular/docs/js/libs | 0 | 0 | 0 | 0 | EventDispatcher.js | 0 | 0 | 0 | 0 | 1-5 bootstrap-native.js | 0 | 0 | 0 | 0 | 1-2 clipboard.min.js | 0 | 0 | 0 | 0 | 1-7 custom-elements-es5-adapter.js | 0 | 0 | 0 | 0 | 1-15 custom-elements.min.js | 0 | 0 | 0 | 0 | 1-38 d3.v3.min.js | 0 | 0 | 0 | 0 | 1-2 deep-iterator.js | 0 | 0 | 0 | 0 | 1-2 es6-shim.min.js | 0 | 0 | 0 | 0 | 1-11 htmlparser.js | 0 | 0 | 0 | 0 | 1-23 innersvg.js | 0 | 0 | 0 | 0 | 1-9 lit-html.js | 0 | 0 | 0 | 0 | 1 prism.js | 0 | 0 | 0 | 0 | 1-14 promise.min.js | 0 | 0 | 0 | 0 | 1-6 svg-pan-zoom.min.js | 0 | 0 | 0 | 0 | 1-3 tablesort.min.js | 0 | 0 | 0 | 0 | 1-6 tablesort.number.min.js | 0 | 0 | 0 | 0 | 1-6 vis.min.js | 0 | 0 | 0 | 0 | 1-46 zepto.min.js | 0 | 0 | 0 | 0 | 1-2 spring-petclinic-angular/docs/js/routes | 0 | 0 | 0 | 0 | routes_index.js | 0 | 0 | 0 | 0 | 1 spring-petclinic-angular/docs/js/search | 0 | 0 | 0 | 0 | lunr.min.js | 0 | 0 | 0 | 0 | 1-6 search-lunr.js | 0 | 0 | 0 | 0 | 1-67 search.js | 0 | 0 | 0 | 0 | 1-271 search_index.js | 0 | 0 | 0 | 0 | 1-4 spring-petclinic-angular/e2e | 0 | 0 | 0 | 0 | app.e2e-spec.ts | 0 | 0 | 0 | 0 | 1-36 app.po.ts | 0 | 0 | 0 | 0 | 1-29 spring-petclinic-angular/src | 0 | 0 | 0 | 0 | main.ts | 0 | 0 | 0 | 0 | 1-31 polyfills.ts | 0 | 0 | 0 | 0 | 1-63 test.ts | 0 | 0 | 0 | 0 | 1-20 spring-petclinic-angular/src/app | 0 | 0 | 0 | 0 | app-routing.module.ts | 0 | 0 | 0 | 0 | 1-40 app.component.spec.ts | 0 | 0 | 0 | 0 | 1-47 app.component.ts | 0 | 0 | 0 | 0 | 1-32 app.module.ts | 0 | 0 | 0 | 0 | 1-64 error.service.ts | 0 | 0 | 0 | 0 | 1-69 spring-petclinic-angular/src/app/owners | 0 | 0 | 0 | 0 | owner.service.spec.ts | 0 | 0 | 0 | 0 | 1-199 owner.service.ts | 0 | 0 | 0 | 0 | 1-84 owner.ts | 0 | 0 | 0 | 0 | 1-33 owners-routing.module.ts | 0 | 0 | 0 | 0 | 1-45 owners.module.ts | 0 | 0 | 0 | 0 | 1-52 spring-petclinic-angular/src/app/owners/owner-add | 0 | 0 | 0 | 0 | owner-add.component.spec.ts | 0 | 0 | 0 | 0 | 1-108 owner-add.component.ts | 0 | 0 | 0 | 0 | 1-60 spring-petclinic-angular/src/app/owners/owner-detail | 0 | 0 | 0 | 0 | owner-detail.component.spec.ts | 0 | 0 | 0 | 0 | 1-134 owner-detail.component.ts | 0 | 0 | 0 | 0 | 1-62 spring-petclinic-angular/src/app/owners/owner-edit | 0 | 0 | 0 | 0 | owner-edit.component.spec.ts | 0 | 0 | 0 | 0 | 1-100 owner-edit.component.ts | 0 | 0 | 0 | 0 | 1-66 spring-petclinic-angular/src/app/owners/owner-list | 0 | 0 | 0 | 0 | owner-list.component.spec.ts | 0 | 0 | 0 | 0 | 1-140 owner-list.component.ts | 0 | 0 | 0 | 0 | 1-88 spring-petclinic-angular/src/app/parts | 0 | 0 | 0 | 0 | parts.module.ts | 0 | 0 | 0 | 0 | 1-45 spring-petclinic-angular/src/app/parts/page-not-found | 0 | 0 | 0 | 0 | page-not-found.component.spec.ts | 0 | 0 | 0 | 0 | 1-49 page-not-found.component.ts | 0 | 0 | 0 | 0 | 1-39 spring-petclinic-angular/src/app/parts/welcome | 0 | 0 | 0 | 0 | welcome.component.spec.ts | 0 | 0 | 0 | 0 | 1-50 welcome.component.ts | 0 | 0 | 0 | 0 | 1-39 spring-petclinic-angular/src/app/pets | 0 | 0 | 0 | 0 | pet.service.spec.ts | 0 | 0 | 0 | 0 | 1-43 pet.service.ts | 0 | 0 | 0 | 0 | 1-79 pet.ts | 0 | 0 | 0 | 0 | 1-35 pets-routing.module.ts | 0 | 0 | 0 | 0 | 1-56 pets.module.ts | 0 | 0 | 0 | 0 | 1-76 spring-petclinic-angular/src/app/pets/pet-add | 0 | 0 | 0 | 0 | pet-add.component.spec.ts | 0 | 0 | 0 | 0 | 1-114 pet-add.component.ts | 0 | 0 | 0 | 0 | 1-87 spring-petclinic-angular/src/app/pets/pet-edit | 0 | 0 | 0 | 0 | pet-edit.component.spec.ts | 0 | 0 | 0 | 0 | 1-114 pet-edit.component.ts | 0 | 0 | 0 | 0 | 1-94 spring-petclinic-angular/src/app/pets/pet-list | 0 | 0 | 0 | 0 | pet-list.component.spec.ts | 0 | 0 | 0 | 0 | 1-101 pet-list.component.ts | 0 | 0 | 0 | 0 | 1-64 spring-petclinic-angular/src/app/pettypes | 0 | 0 | 0 | 0 | pettype.service.spec.ts | 0 | 0 | 0 | 0 | 1-42 pettype.service.ts | 0 | 0 | 0 | 0 | 1-77 pettype.ts | 0 | 0 | 0 | 0 | 1-26 pettypes-routing.module.ts | 0 | 0 | 0 | 0 | 1-42 pettypes.module.ts | 0 | 0 | 0 | 0 | 1-48 spring-petclinic-angular/src/app/pettypes/pettype-add | 0 | 0 | 0 | 0 | pettype-add.component.spec.ts | 0 | 0 | 0 | 0 | 1-58 pettype-add.component.ts | 0 | 0 | 0 | 0 | 1-33 spring-petclinic-angular/src/app/pettypes/pettype-edit | 0 | 0 | 0 | 0 | pettype-edit.component.spec.ts | 0 | 0 | 0 | 0 | 1-59 pettype-edit.component.ts | 0 | 0 | 0 | 0 | 1-62 spring-petclinic-angular/src/app/pettypes/pettype-list | 0 | 0 | 0 | 0 | pettype-list.component.spec.ts | 0 | 0 | 0 | 0 | 1-73 pettype-list.component.ts | 0 | 0 | 0 | 0 | 1-54 spring-petclinic-angular/src/app/specialties | 0 | 0 | 0 | 0 | spec-resolver.ts | 0 | 0 | 0 | 0 | 1-38 specialties-routing.module.ts | 0 | 0 | 0 | 0 | 1-42 specialties.module.ts | 0 | 0 | 0 | 0 | 1-50 specialty.service.spec.ts | 0 | 0 | 0 | 0 | 1-42 specialty.service.ts | 0 | 0 | 0 | 0 | 1-77 specialty.ts | 0 | 0 | 0 | 0 | 1-26 spring-petclinic-angular/src/app/specialties/specialty-add | 0 | 0 | 0 | 0 | specialty-add.component.spec.ts | 0 | 0 | 0 | 0 | 1-74 specialty-add.component.ts | 0 | 0 | 0 | 0 | 1-59 spring-petclinic-angular/src/app/specialties/specialty-edit | 0 | 0 | 0 | 0 | specialty-edit.component.spec.ts | 0 | 0 | 0 | 0 | 1-81 specialty-edit.component.ts | 0 | 0 | 0 | 0 | 1-61 spring-petclinic-angular/src/app/specialties/specialty-list | 0 | 0 | 0 | 0 | specialty-list.component.spec.ts | 0 | 0 | 0 | 0 | 1-97 specialty-list.component.ts | 0 | 0 | 0 | 0 | 1-75 spring-petclinic-angular/src/app/testing | 0 | 0 | 0 | 0 | dummy.component.ts | 0 | 0 | 0 | 0 | 1-30 router-stubs.ts | 0 | 0 | 0 | 0 | 1-77 testing.module.ts | 0 | 0 | 0 | 0 | 1-16 spring-petclinic-angular/src/app/vets | 0 | 0 | 0 | 0 | vet-resolver.ts | 0 | 0 | 0 | 0 | 1-38 vet.service.spec.ts | 0 | 0 | 0 | 0 | 1-42 vet.service.ts | 0 | 0 | 0 | 0 | 1-78 vet.ts | 0 | 0 | 0 | 0 | 1-30 vets-routing.module.ts | 0 | 0 | 0 | 0 | 1-43 vets.module.ts | 0 | 0 | 0 | 0 | 1-55 spring-petclinic-angular/src/app/vets/vet-add | 0 | 0 | 0 | 0 | vet-add.component.spec.ts | 0 | 0 | 0 | 0 | 1-53 vet-add.component.ts | 0 | 0 | 0 | 0 | 1-72 spring-petclinic-angular/src/app/vets/vet-edit | 0 | 0 | 0 | 0 | vet-edit.component.spec.ts | 0 | 0 | 0 | 0 | 1-53 vet-edit.component.ts | 0 | 0 | 0 | 0 | 1-99 spring-petclinic-angular/src/app/vets/vet-list | 0 | 0 | 0 | 0 | vet-list.component.spec.ts | 0 | 0 | 0 | 0 | 1-71 vet-list.component.ts | 0 | 0 | 0 | 0 | 1-68 spring-petclinic-angular/src/app/visits | 0 | 0 | 0 | 0 | visit.service.spec.ts | 0 | 0 | 0 | 0 | 1-42 visit.service.ts | 0 | 0 | 0 | 0 | 1-82 visit.ts | 0 | 0 | 0 | 0 | 1-31 visits-routing.module.ts | 0 | 0 | 0 | 0 | 1-46 visits.module.ts | 0 | 0 | 0 | 0 | 1-74 spring-petclinic-angular/src/app/visits/visit-add | 0 | 0 | 0 | 0 | visit-add.component.spec.ts | 0 | 0 | 0 | 0 | 1-111 visit-add.component.ts | 0 | 0 | 0 | 0 | 1-99 spring-petclinic-angular/src/app/visits/visit-edit | 0 | 0 | 0 | 0 | visit-edit.component.spec.ts | 0 | 0 | 0 | 0 | 1-118 visit-edit.component.ts | 0 | 0 | 0 | 0 | 1-95 spring-petclinic-angular/src/app/visits/visit-list | 0 | 0 | 0 | 0 | visit-list.component.spec.ts | 0 | 0 | 0 | 0 | 1-114 visit-list.component.ts | 0 | 0 | 0 | 0 | 1-64 spring-petclinic-angular/src/environments | 0 | 0 | 0 | 0 | environment.prod.ts | 0 | 0 | 0 | 0 | 1-26 environment.ts | 0 | 0 | 0 | 0 | 1-27 -------------------------------------------------------------|---------|----------|---------|---------|-------------------
May I ask where is the problem and how can I solve it?
The text was updated successfully, but these errors were encountered:
My .nycrc is:
.nycrc
{ "extends": "@istanbuljs/nyc-config-typescript", "all": true }
Sorry, something went wrong.
No branches or pull requests
I want to test the coverage of this project. At first, I used nyc, but the lines coverage is zero:
so I try to use c8, but the coverage is all 0:
May I ask where is the problem and how can I solve it?
The text was updated successfully, but these errors were encountered: