CMake Configuration for Demo ProjectCOLLECT_CODE_COVERAGE back to TRUE set(COLLECT_CODE_COVERAGE FALSE) if (COLLECT_CODE_COVERAGE) include(CodeCoverage) append_coverage_compiler_flags() set(COVERAGE_EXCLUDES "/Applications/Xcode0 码力 | 1 页 | 1.23 KB | 1 年前3
Angular CLI TutorialSyntax|Description| |---|---|---| |1|--browsers=browsers|Override which browsers tests are run against.| |2|--codeCoverage=true\|false|Output a code coverage report. Default: false| |3|--codeCoverageExclude|Globs to exclude example. ## Syntax The syntax for code coverage command is as follows: ng test--codeCoverage=true The test command allows to check code coverage using the test cases written. See the example htm. Now, run the test with codeCoverage command. ## Example An example for ng code coverage command is given below: \>Node\\>TutorialsPoint> ng test --codeCoverage=true 10% building 2/2 modules 0 码力 | 64 页 | 1.04 MB | 2 年前3
共 2 条
- 1













