Updated composer scripts to run tests (#519)

This commit is contained in:
Tobias Nyholm 2019-01-06 10:37:07 +01:00 committed by GitHub
parent e341a44a5c
commit 6aecbd5be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 20 deletions

View File

@ -17,7 +17,7 @@ branches:
- /^patch-.*$/
env:
- TEST_COMMAND="composer test-all"
- TEST_COMMAND="composer test"
matrix:
fast_finish: true

View File

@ -37,10 +37,8 @@
}
],
"scripts": {
"test": "vendor/bin/phpunit --testsuite unit && vendor/bin/phpunit --testsuite functional",
"test-all": "vendor/bin/phpunit --testsuite all",
"test-integration": "vendor/bin/phpunit --testsuite integration",
"test-coverage": "vendor/bin/phpunit --testsuite all --coverage-text --coverage-clover=build/coverage.xml"
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
},
"extra": {
"branch-alias": {

View File

@ -10,23 +10,9 @@
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader">
<testsuites>
<testsuite name="all">
<testsuite name="Mailgun test suite">
<directory>tests</directory>
</testsuite>
<testsuite name="unit">
<directory>tests</directory>
<exclude>tests/Integration</exclude>
<exclude>test/Functional</exclude>
</testsuite>
<testsuite name="integration">
<directory>tests/Integration</directory>
</testsuite>
<testsuite name="functional">
<directory>tests/Functional</directory>
</testsuite>
</testsuites>
<filter>