This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add UT code coverage report * updates * updates * updates * updates * updates * updates * integration test python code coverage report
- Loading branch information
Showing
10 changed files
with
1,305 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as glob from 'glob'; | ||
|
||
// Istanbul only generates report for used/imported files, the files are not used/imported by test cases | ||
// are not included in code coverage reports. | ||
// This is a workaround to import all files in order to show all source files in code coverage reports. | ||
|
||
glob.sync('**/*.ts').forEach((file) => { | ||
if (file.indexOf('node_modules/') < 0 && file.indexOf('types/') < 0 | ||
&& file.indexOf('.test.ts') < 0 && file.indexOf('main.ts')) { | ||
try { | ||
import('../../' + file); | ||
} catch(err) { | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.