PHP Classes

File: support/tools/coverage

Recommend this page to a friend!
  Classes of Daniele Orlando   FluidXML   support/tools/coverage   Download  
File: support/tools/coverage
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: FluidXML
Manipulate XML documents using a fluent interface
Author: By
Last change: PHP Code Coverage - Coveralls mapping fix.
Internal cleanup and code coverage completion.
Scrutinizer still bugging me again.
Scrutinizer is bugging me.
Scrutinizer-CI.com support.
Date: 8 years ago
Size: 1,073 bytes
 

Contents

Class file image Download
#!/usr/bin/env sh cd "$(dirname "$0")" . "./.common.sh" cd ../.. PATH="$PWD/sandbox/composer/bin:$PATH" if ! chkcmd 'peridot'; then echo ' error: "peridot" command not found.' echo ' Execute "./support/tools/init" first.' exit 1 fi coverage_index="$PWD/sandbox/code-coverage-report/index.html" ## It's is not created automatically. mkdir -p "$(dirname "$coverage_index")" reporter=html-code-coverage if test $# -eq 1; then reporter=$1 fi cd sandbox peridot_arguments="-c \"../support/peridot.php\" -r $reporter -g \"*.php\" \"../specs/\"" if php -m | grep -i 'xdebug' > /dev/null; then echo ' info: using Xdebug.' eval "peridot $peridot_arguments" elif chkcmd 'phpdbg'; then echo ' info: using phpdbg.' echo echo ' type: run' echo ' quit' echo eval "phpdbg -e \"$(which peridot)\" $peridot_arguments" else echo ' error: no profiling tool found.' exit 1 fi if test -f "$coverage_index" && chkcmd 'open'; then open "$coverage_index" fi