Skip to content

Commit

Permalink
Upgrade testsuite (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Repox authored Dec 14, 2020
1 parent 7118e67 commit 8527f3e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 36 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "^9.2",
"filp/whoops": "~2.0",
"orchestra/testbench": "^6.2",
"orchestra/testbench": "^6.6",
"league/openapi-psr7-validator": "^0.7",
"neondigital/laravel-openapi-validator": "^0.1",
"brianium/paratest": "^4.1"
"brianium/paratest": "^4.1",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
Expand Down
56 changes: 23 additions & 33 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,37 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true">
<testsuites>
<testsuite name="feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>

<testsuite name="unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>

<!-- <testsuite name="API Tests">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
</include>
</coverage>
<testsuites>
<testsuite name="feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
<testsuite name="unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
<!-- <testsuite name="API Tests">
<directory suffix="Test.php">./tests/Api</directory>
</testsuite> -->
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="testing"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="testing"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>

0 comments on commit 8527f3e

Please sign in to comment.