diff --git a/.gitignore b/.gitignore index 338893d3..8532760a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ composer.lock .php_cs.cache /vendor/ /public +.idea/ +coverage.xml +results.xml diff --git a/.travis.yml b/.travis.yml index dd082e4c..36f2c9ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,10 @@ before_script: - travis_retry composer install --prefer-dist --no-interaction script: - - vendor/bin/phpunit --coverage-clover=coverage.xml + - composer test-ci before_install: - pip install --user codecov after_success: - - codecov \ No newline at end of file + - codecov diff --git a/composer.json b/composer.json index c4ce211d..a7fa4a08 100644 --- a/composer.json +++ b/composer.json @@ -38,6 +38,9 @@ "Mpociot\\ApiDoc\\Tests\\": "tests/" } }, + "scripts": { + "test-ci": "phpunit --coverage-clover=coverage.xml" + }, "extra": { "laravel": { "providers": [ diff --git a/tests/GenerateDocumentationTest.php b/tests/GenerateDocumentationTest.php index 41cf492e..09af58a7 100644 --- a/tests/GenerateDocumentationTest.php +++ b/tests/GenerateDocumentationTest.php @@ -51,7 +51,7 @@ protected function getPackageProviders($app) public function testConsoleCommandNeedsAPrefixOrRoute() { $output = $this->artisan('api:generate'); - $this->assertEquals('You must provide either a route prefix or a route or a middleware to generate the documentation.'.PHP_EOL, $output); + $this->assertEquals('You must provide either a route prefix, a route domain, a route or a middleware to generate the documentation.'.PHP_EOL, $output); } public function testConsoleCommandDoesNotWorkWithClosure()