Wallogit.com
2017 © Pedro Peláez
npm mocha plugin for PHPCI
Add this to composer.json:, (*1)
composer require sergiu-paraschiv/phpci-istanbul
Then the task to phpci.yml:, (*2)
\SergiuParaschiv\PHPCI\Plugin\Istanbul:
directory: "frontend"
command: "npm run -s coverage:ci"
outputDirectory: "../../../../public/coverage/frontend"
Npm should run with the -s flag., (*3)
coverage:ci in package.json should be "istanbul cover --dir $DIR --root app _mocha -- --recursive app/test", (*4)