Skip to content

Commit

Permalink
fixed coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed Feb 15, 2017
1 parent 64c8614 commit 68983bb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ examples/ export-ignore
.codecov.yml export-ignore
.travis.yml export-ignore
.styleci.yml export-ignore
.php_cs export-ignore
phpcs.xml export-ignore
phpmd.xml export-ignore
.php_cs.dist export-ignore
phpcs.xml.dist export-ignore
phpmd.xml.dist export-ignore
phpunit.xml.dist export-ignore
Makefile export-ignore

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ auth.json
node_modules/
vendor/
bower_components/
tmp/
npm-debug.log

# Include laravel vendor resources
Expand Down
24 changes: 11 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ dusk:
@echo "\033[32mDusk\033[39m"
@php artisan dusk

## Test Coverage
## Test Coverage HTML
coverage:
@echo "\033[32mAll tests with coverage\033[39m"
@php vendor/bin/phpunit --coverage-html=storage/app/tmp/coverage/
Expand Down Expand Up @@ -174,18 +174,16 @@ endif
# Run the PHPUnit tests for Travis CI
phpunit-ci:
ifeq "$(TRAVIS_PHP_VERSION)" "7.0"
# @mkdir tmp/
# @echo "\033[32mUnit Tests with coverage\033[39m"
# @php vendor/bin/phpunit --coverage-php=tmp/ --testsuite "Unit Tests" --exclude-group slow
# @echo "\033[32mSlow Unit Tests with coverage\033[39m"
# @php vendor/bin/phpunit --coverage-php=tmp/ --testsuite "Unit Tests" --exclude-group default
# @echo "\033[32mIntegration Tests with coverage\033[39m"
# @php vendor/bin/phpunit --coverage-php=stmp/ --testsuite "Integration Tests"
# @echo "\033[32mMerging coverage\033[39m"
# @php vendor/bin/phpcov merge tmp/ --clover coverage.xml
# @rm -rf tmp/
@echo "\033[32mAll Tests with coverage\033[39m"
@php vendor/bin/phpunit --coverage-clover=coverage.xml
@mkdir tmp/
@echo "\033[32mFast Unit Tests with coverage\033[39m"
@php vendor/bin/phpunit --coverage-php=tmp/unit.cov --testsuite "Unit Tests" --exclude-group slow
@echo "\033[32mSlow Unit Tests with coverage\033[39m"
@php vendor/bin/phpunit --coverage-php=tmp/slow.cov --testsuite "Unit Tests" --exclude-group default
@echo "\033[32mIntegration Tests with coverage\033[39m"
@php vendor/bin/phpunit --coverage-php=tmp/integration.cov --testsuite "Integration Tests"
@echo "\033[32mMerging coverage\033[39m"
@php vendor/bin/phpcov merge tmp/ --clover coverage.xml
@rm -rf tmp/
else ifeq "$(DB)" "sqlite"
@$(MAKE) phpunit
@$(MAKE) integration
Expand Down

0 comments on commit 68983bb

Please sign in to comment.