Skip to content

Commit

Permalink
Try to configure code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgaillard committed Aug 17, 2016
1 parent de07010 commit 82c3ef5
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ elasticsearch.log
/node_modules/
/target/
/scheduled_task_manager.lock
/build/
15 changes: 0 additions & 15 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,6 @@ module.exports = function(grunt) {
}
},

paratest : {
command : (function() {

var command = 'vendor\bin\paratest';
command += ' --processes=4';
command += ' --functional';
command += ' --colors';
command += ' --configuration="phpunit.xml"';
command += ' --path="src/test/php"';

return command;

})()
},

pdepend : {
command : (function() {

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
},
"require-dev" : {
"brianium/paratest" : "^0.14.0",
"codeclimate/php-test-reporter" : "^0.3.2",
"pdepend/pdepend" : "^2.2.4",
"phpdocumentor/phpdocumentor" : "^2.9.0",
"phploc/phploc" : "^3.0.1",
Expand Down
62 changes: 60 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions phpunit.xml.dist → phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="src/test/php/bootstrap.php"
stopOnError="true"
stopOnFailure="true"
Expand All @@ -10,15 +12,11 @@

<!-- Log Unit Test results into a JUnit XML file -->
<log type="junit"
target="build/reports/phpunit/TEST-phpunit.report.xml"
logIncompleteSkipped="false"/>
target="build/reports/phpunit/TEST-phpunit.report.xml" />

<!-- Log Code Coverage results as HTML -->
<log type="coverage-html"
target="build/reports/coverage/html"
charset="UTF-8"
yui="true"
highlight="false"
lowUpperBound="35"
highLowerBound="70" />

Expand Down

0 comments on commit 82c3ef5

Please sign in to comment.