logo
1
0
WeChat Login

CoverageCheck

CoverageCheck Docker Plugin

Input

  • summary: string Required, read unit test coverage-summary.json report from the specified file
  • check_files: string Optional, read the list of files to be checked from the specified file, skip checking if empty
  • lines: number Optional, minimum required Lines coverage, default is 0
  • statements: number Optional, minimum required Statements coverage, default is 0
  • functions: number Optional, minimum required Functions coverage, default is 0
  • branches: number Optional, minimum required Branches coverage, default is 0

Example

Using on Cloud Native Build

# .cnb.yml main: pull_request: - stages: - name: run unit test script: npm run test - name: git-change-list image: cnbcool/git-change-list:latest settings: changed: changed.txt - name: do check coverage image: tencentcom/coverage-check:latest settings: summary: ./coverage/coverage-summary.json check_files: changed.txt lines: 80 statements: 80 functions: 80 branches: 80 final: ./coverage/coverage-final.json

About

coverage-check

356.00 KiB
1 forks0 stars1 branches1 TagREADMEMIT license
Language
JavaScript93.8%
Dockerfile6.2%