Skip to content

[BUG] Guards are not in the coverage #722

@marcelbarner

Description

@marcelbarner
Overview of the issue

I wrote a normal guard which implements the CanActivate interface.
The implementation is found under the guards section of the documentation, but not found in the coverage section.

Operating System, Node.js, npm, compodoc version(s)

Angular: 7.2.2
Node.Js: 11.8.0
npm: 6.5.0
compodoc: 1.1.7

Angular configuration, a package.json file in the root folder
package.json

{
"name": "xxx",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"compodoc": "npx compodoc -p src/tsconfig.app.json --includes src/documentation",
"compodoc-serve": "npx compodoc -p src/tsconfig.app.json --includes src/documentation -s -w -o"
},
"private": true,
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"@auth0/angular-jwt": "^2.1.0",
"core-js": "^2.5.4",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.12.0",
"@angular/cli": "~7.2.2",
"@angular/compiler-cli": "~7.2.0",
"@angular/language-service": "~7.2.0",
"@compodoc/compodoc": "^1.1.7",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-mocha-reporter": "^2.2.5",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.2.2"
}
}

Compodoc installed globally or locally ?

Compodoc is installed locally

If possible sourcecode of the file where it breaks
If possible your terminal logs before the error
Motivation for or Use Case

Also the documentation from the guards should be in the coverage

Reproduce the error
Related issues
Suggest a Fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions