Skip to content

Bash script to run and record code coverage on a external phpunit directory over time

Notifications You must be signed in to change notification settings

Shapeways/phpunit-coverage-over-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Phpunit Code Coverage Script

Outputs json records in the following format:

{"date": 'DATE', "revision": 'REVISION’, "classCoveragePercent": 0, "methodCoveragePercent": 0, "lineCoveragePercent": 0}

Does not currently record what repository is targeted in the file. I recommend including this in the logfile name.

  1. Run codeCoverage.sh

bash codeCoverage.sh

  1. Type in the path of the folder where you want to measure code coverage over time
  2. Indicate how many weeks back you want to try to collect data
  3. Type the name of the file where you want to log results
  4. Watch it go

File will print an error if it checks out a revision where it can't run tests on the indicated directory. Any git related errors will also be displayed.

About

Bash script to run and record code coverage on a external phpunit directory over time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages