1.1.6 • Published 4 years ago

js-line-code-coverage v1.1.6

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

#js 行覆盖率 上传

getGitInfo.js文件: 获取 git地址(CURRENT_GITURL)、最近的commitId(CURRENT_COMMITID)和当前分支名称(CURRENT_GITBRANCH),并写入gitInfo.js gitInfo.js文件:git地址(CURRENT_GITURL)、最近的commitId(CURRENT_COMMITID)和当前分支名称(CURRENT_GITBRANCH) index.js: editLineCoverage函数---处理istanbul-middleware window.coverage的数据; uploadData函数---上传数据接口 https://cosmos-compass-web.immomo.com/code/testReport/upload webpack.linecodecov.js: 这个文件和引入项目的webpack配置merge,接入istanbul

接入: 1. npm i --s babel-plugin-istanbul npm i --s js-line-code-coverage //如果没有安装babel-core 需要npm install babel-core --save //如果没有安装babel-loader 需要npm install babel-loader --save 2. vue项目 main.js require('js-line-code-coverage') 3. webpack.dev.js (测试环境的webpack配置) const jsCov = require('../node_modules/js-line-code-coverage/webpack.linecodecov') //webpack.linecodecov的相对路径!!!!
module.exports =merge(jsCov,{...自己的配置})

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago