Skip to content

Commit

Permalink
Merge pull request #50 from damien-louis/feature/test-files-in-subfolder
Browse files Browse the repository at this point in the history
Move test config files in subfolder
  • Loading branch information
damien-louis authored Dec 10, 2023
2 parents 4687f9f + 379011d commit 6a08ea8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ php-cs-fixer-apply: ## Execute php-cs-fixer and apply changes
## —— ✨ Tests ——
.PHONY: tests
tests: ## Execute tests
$(APP) vendor/bin/simple-phpunit --colors=always --testdox
$(APP) vendor/bin/behat
$(APP) vendor/bin/simple-phpunit --configuration ./tests/phpunit.xml.dist --colors=always --testdox
$(APP) vendor/bin/behat --config ./tests/behat.yml

##
## —— ✨ Others ——
Expand Down
2 changes: 2 additions & 0 deletions behat.yml.dist → tests/behat.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
default:
suites:
default:
paths:
features: features
contexts:
- App\Tests\Behat\DemoContext

Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist → tests/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
xsi:noNamespaceSchemaLocation="../vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
bootstrap="./bootstrap.php"
convertDeprecationsToExceptions="false"
>
<php>
Expand All @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
<directory>./</directory>
</testsuite>
</testsuites>

Expand Down

0 comments on commit 6a08ea8

Please sign in to comment.