Skip to content

Commit

Permalink
Merge pull request #7 from toneflix/dev
Browse files Browse the repository at this point in the history
Update composer.json
  • Loading branch information
3m1n3nc3 authored Jul 3, 2024
2 parents c64953e + 61d9e16 commit d161bf2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
composer.lock
/vendor
.env
.updated
.idea
.phpunit.cache
build
composer.lock
coverage
docs
phpunit.xml
phpstan.neon
testbench.yaml
vendor
node_modules
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
},
"scripts": {
"test": "vendor/bin/pest",
"test": "XDEBUG_MODE=coverage vendor/bin/pest --coverage",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
},
"config": {
Expand All @@ -65,4 +65,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
26 changes: 24 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/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="Test Suite">
<directory suffix="Test.php">./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>
<source>
<include>
<directory suffix=".php">./app</directory>
Expand All @@ -24,5 +45,6 @@
<server name="MAIL_DRIVER" value="array" />
<server name="QUEUE_CONNECTION" value="sync" />
<server name="SESSION_DRIVER" value="array" />
<server name="XDEBUG_MODE" value="coverage" />
</php>
</phpunit>

0 comments on commit d161bf2

Please sign in to comment.