-
- Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature/test-runnerCLI test runnerCLI test runnertype/enhancementA new idea that should be implementedA new idea that should be implemented
Milestone
Description
It should be possible to have <testsuite> specific bootstrap scripts:
<?xml version="1.0" encoding="UTF-8"?> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.2/phpunit.xsd" bootstrap="vendor/autoload.php"> <testsuites> <testsuite name="unit"> <directory suffix="Test.php">tests/unit</directory> </testsuite> <testsuite name="integration" bootstrap="tests/integration/bootstrap.php"> <directory suffix="Test.php">tests/integration</directory> </testsuite> </testsuites> </phpunit>phpunit should load vendor/autoload.php and tests/integration/bootstrap.php.
phpunit --testsuite unit should only load vendor/autoload.php.
phpunit --testsuite integration should load vendor/autoload.php and tests/integration/bootstrap.php.
Each bootstrap script, even if configured multiple times, must only be loaded once.
andrew-demb, mariusjp, jdreesen, danielkatz, danielmorell and 8 morelocalheinz, chadyred, SvenHerrmann, oliverklee and Th3Mouk
Metadata
Metadata
Assignees
Labels
feature/test-runnerCLI test runnerCLI test runnertype/enhancementA new idea that should be implementedA new idea that should be implemented