mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Move phpunit.xml into root to make PHPUnit easier to run
This seems to be pretty standard. Can just run `vendor/bin/phpunit` without any arguments. Removes the need for `composer test` (which is not ideal anyway as it removes colours from the output).
This commit is contained in:
parent
44d44ef0aa
commit
d2dc0d05e5
|
@ -17,7 +17,7 @@ before_script:
|
|||
- composer install
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverage.xml
|
||||
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
|
|
@ -72,9 +72,6 @@
|
|||
"Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "vendor/bin/phpunit -c tests/phpunit.xml"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "0.1.x-dev"
|
||||
|
|
|
@ -12,13 +12,8 @@
|
|||
|
||||
<testsuites>
|
||||
<testsuite name="all">
|
||||
<directory suffix="Test.php">./</directory>
|
||||
<directory suffix="Test.php">./tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
<php>
|
||||
<env name="APP_ENV" value="testing"/>
|
||||
<env name="CACHE_DRIVER" value="array"/>
|
||||
</php>
|
||||
|
||||
</phpunit>
|
Loading…
Reference in New Issue
Block a user