bjc
v1.0.13
Published
bjc is an OpenHarmony ets instrument tool.
Downloads
229
Readme
bjc
Description
bjc is an OpenHarmony ets instrument tool.
Installation
npm install bjc
Build
Install dependencies
npm i
Build & Pack
npm run build
npm pack
Instructions
1. Usage
Usage: bjc [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
report <input> [output] parse coverage data to generate report.
instrument <input> [output]
install <sdk_home>
help [command] display help for command
2. Using in command-line-tools
Download command-line-tools
Command Line Tools for HarmonyOS NEXT Developer Beta1(5.0.3.404)install bjc to the sdk
bjc install ${SDK_HOME}
- hvigor build Hap & instrument coverage
hvigorw -p buildMode=debug -p coverage-mode=full clean assembleHap
3. Coverage file storage location
/data/app/el2/100/base/${bundleName}/haps/{entryModuleName}/cache/bjc_cov_xxx.json