mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 03:32:44 +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
|
- composer install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverage.xml
|
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|
|
@ -72,9 +72,6 @@
|
||||||
"Tests\\": "tests/"
|
"Tests\\": "tests/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
|
||||||
"test": "vendor/bin/phpunit -c tests/phpunit.xml"
|
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "0.1.x-dev"
|
"dev-master": "0.1.x-dev"
|
||||||
|
|
|
@ -12,13 +12,8 @@
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="all">
|
<testsuite name="all">
|
||||||
<directory suffix="Test.php">./</directory>
|
<directory suffix="Test.php">./tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<php>
|
|
||||||
<env name="APP_ENV" value="testing"/>
|
|
||||||
<env name="CACHE_DRIVER" value="array"/>
|
|
||||||
</php>
|
|
||||||
|
|
||||||
</phpunit>
|
</phpunit>
|
Loading…
Reference in New Issue
Block a user