From 8ad6c8774c574304cc3ad4bb7d973223444b2b6f Mon Sep 17 00:00:00 2001 From: alicia pritchett Date: Mon, 27 Sep 2021 11:19:33 -0400 Subject: [PATCH] took a look at coverage a journey for another time --- README.md | 8 ++++++++ .../workflow-spec-list/workflow-spec-list.component.ts | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a5afe8c..aedf851 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,14 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github. Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). +One way to check for coverage: + +Install lcov (in ubuntu: sudo apt-get install lcov) + +run `ng test --no-watch --code-coverage` to generate a coverage directory, with an lcov file in it + +run `genhtml coverage/lcov.info -o coverage/html` to generate an html doc that looks at coverage (index.html) + ## Further help To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index 6514dd2..7bb41ec 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -79,7 +79,6 @@ export class WorkflowSpecListComponent implements OnInit { this.searchField = new FormControl(); this.searchField.valueChanges.subscribe(value => { this._loadWorkflowSpecs(null, value); - console.log(value); }); } @@ -220,7 +219,6 @@ export class WorkflowSpecListComponent implements OnInit { } editCategoryDisplayOrder(catId: number, direction: string) { - console.log('new wfsbycat is: ', this.workflowSpecsByCategory); this.api.reorderWorkflowCategory(catId, direction).subscribe(cat_change => { this.workflowSpecsByCategory = this.workflowSpecsByCategory.map(cat => { let new_cat = cat_change.find(i2 => i2.id === cat.id); @@ -305,7 +303,6 @@ export class WorkflowSpecListComponent implements OnInit { standalone: data.standalone, library: data.library, }; - console.log('DO: ', data.display_order); if (isNew) { this._addWorkflowSpec(newSpec);