Added PHPunit.xml

This commit is contained in:
Marcin Kurczewski 2014-11-09 16:33:57 +01:00
parent 2ede81e1d8
commit 9130b162b7
2 changed files with 15 additions and 1 deletions

View file

@ -157,7 +157,7 @@ module.exports = function(grunt) {
});
grunt.registerTask('tests', 'Run all tests.', function() {
exec('php vendor/phpunit/phpunit/phpunit -v --strict --bootstrap src/Bootstrap.php tests/');
exec('php vendor/phpunit/phpunit/phpunit');
});
grunt.registerTask('update', 'Upgrade database to newest version.', function() {

14
phpunit.xml Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./src/Bootstrap.php" colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Main test suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>