1.0.19 • Published 8 months ago

bjc v1.0.19

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

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

  1. Download command-line-tools
    Command Line Tools for HarmonyOS NEXT Developer Beta1(5.0.3.404)

  2. install bjc to the sdk

bjc install ${command-line-tools}/sdk
  1. hvigor build Hap & instrument coverage
hvigorw -p buildMode=debug -p coverage-mode=full -p debugLine=true clean assembleHap

3. Coverage file storage location

/data/app/el2/100/base/${bundleName}/haps/{entryModuleName}/cache/bjc_cov_xxx.json

4. Instrument ignore feature

ignore file

Add a comment to the source file // instrument ignore file or /* instrument ignore file */. after adding the comment, the file will no longer be instrumented, and the coverage report will not have the file.

ignore next

Add // instrument ignore next or /* instrument ignore next */ in front of the code block.

ignore if

Add // instrument ignore if or /* instrument ignore if */in front of the conditional expression to ignore if branch.

ignore else

Add // instrument ignore else or /* instrument ignore else */in front of the conditional expression to ignore else branch.

1.0.19

8 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

9 months ago

1.0.15

9 months ago

1.0.14

11 months ago

1.0.11

11 months ago

1.0.13

11 months ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago