Skip to content

Commit

Permalink
Adjust the test script
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesChou committed Dec 6, 2018
1 parent 41c4f84 commit a5ec929
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: all tests
.PHONY: all test

all: tests
all: test

tests:
test:
php vendor/bin/phpcs
php vendor/bin/phpunit
phpdbg -qrr vendor/bin/phpunit

coverage:
php vendor/bin/phpunit --coverage-html build
coverage: test
@if [ "`uname`" = "Darwin" ]; then open build/coverage/index.html; fi
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<logging>
<log type="testdox-text" target="build/testdox/executed.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-html" target="build/coverage" lowUpperBound="30" highLowerBound="70" />
<log type="junit" target="build/phpunit/phpunit.xml" />
</logging>
</phpunit>

0 comments on commit a5ec929

Please sign in to comment.