diff --git a/.gitignore b/.gitignore index 64054ed380..8964411c74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .env composer.phar composer.lock +build vendor .idea .php_cs.cache diff --git a/.travis.yml b/.travis.yml index b7babce4a8..2a97336530 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ install: - travis_retry composer install --prefer-dist --no-interaction --no-suggest script: - - vendor/bin/phpunit + - composer run test:ci after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/composer.json b/composer.json index 1f5660a47f..25de79f1bf 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,10 @@ "Nuwave\\Lighthouse\\Tests\\": "tests/" } }, + "scripts": { + "test" : "vendor/bin/phpunit --colors=always", + "test:ci": "composer test -- --verbose --coverage-text --coverage-clover=coverage.xml" + }, "config": { "sort-packages": true } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2f9e9d2126..272095288e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -16,6 +16,22 @@ ./tests/ + + + src/ + + src/LaravelServiceProvider.php + src/Support/helpers.php + + + + + + + + + +