3.0.1 • Published 2 years ago

git-diff-code-coverage v3.0.1

Weekly downloads
77
License
MIT
Repository
github
Last release
2 years ago

Git Diff Code Coverage

Build Status airbnb-style npm version

Application used to check code coverage by tests on added lines (ex. check coverage just on new code in PR)

How to use?

  1. Install tool
npm i -g git-diff-code-coverage
  1. Run test to generate coverage report
npm test
  1. Run application to analyze it
gitDiffCodeCoverage --repoPath=/Users/user/Src/example --reportPath=artifacts/coverage/coverage-summary.json --fileTemplate=app/**/*.js --source=newBranch --target=master --reportFormat=lcov -v

Arguments

Path to folder with initiated git repository (required)

--repoPath, String

Source branch or commit hash (ex. myCoolFeature)

--source, String

Target branch or commit hash (ex. master)

--target, String, defaultValue: 'master'

Path to generated report (json summary coverage report)

--reportPath, String, defaultValue: 'coverage/coverage-summary.json'

Verbose mode (display stats by each file and line)

--verbose, -v

Silent mode (hide all output)

--silent, -s

Minimum overall coverage

--minimumOverallCoverage, -m, Number, defaultValue: 70

Files to analyze

--fileTemplate, -f, String, defaultValue: 'src/**/*.js'

Report format

--reportFormat, String, defaultValue: 'lcov', possible values: 'json', 'lcov'

Areas to improve:

  • Analyse git default output (using data between @@ ... @@)
  • Add other coverage report support
  • Improve coverage
  • Generate pretty output
3.0.1

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.2-0

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago