Skip to content

Commit

Permalink
upgrade to pest 2
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 5, 2023
1 parent 974d65f commit f7fc30c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 51 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
"require-dev": {
"laravel/horizon": "^5.9.10",
"laravel/slack-notification-channel": "^2.4",
"nunomaduro/collision": "^5.10|^6.2.1|^6.1",
"nunomaduro/collision": "^5.10|^6.2.1|^6.1|^7.0",
"nunomaduro/larastan": "^1.0.3|^2.4",
"orchestra/testbench": "^6.23|^7.6|^8.0",
"pestphp/pest": "^1.21.3",
"pestphp/pest-plugin-laravel": "^1.2",
"pestphp/pest": "^2.21.3",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpunit/phpunit": "^9.5.21|^9.5.10",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ray": "^1.30",
"spatie/pest-plugin-snapshots": "^1.1",
"spatie/pest-plugin-test-time": "^1.1.1|^1.1",
"spatie/pest-plugin-snapshots": "^2.0",
"spatie/pest-plugin-test-time": "^2.0",
"spatie/test-time": "^1.3"
},
"autoload": {
Expand Down
72 changes: 28 additions & 44 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,46 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_USERNAME" value="root"/>
<env name="DB_DATABASE" value="laravel_health"/>
<env name="DB_HOST" value="127.0.0.1" />
<env name="DB_PORT" value="3306" />
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<php>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_USERNAME" value="root"/>
<env name="DB_DATABASE" value="laravel_health"/>
<env name="DB_HOST" value="127.0.0.1"/>
<env name="DB_PORT" value="3306"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
->beforeEach(function () {
Mail::fake();

ray()->newScreen(test()->getName());
ray()->newScreen(test()->name());
})
->in(__DIR__);

Expand Down

0 comments on commit f7fc30c

Please sign in to comment.