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-.*$/ - /^patch-.*$/
env: env:
- TEST_COMMAND="composer test-all" - TEST_COMMAND="composer test"
matrix: matrix:
fast_finish: true fast_finish: true

View File

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

View File

@ -10,23 +10,9 @@
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"> testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader">
<testsuites> <testsuites>
<testsuite name="all"> <testsuite name="Mailgun test suite">
<directory>tests</directory> <directory>tests</directory>
</testsuite> </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> </testsuites>
<filter> <filter>