paratest: Could not read "phpunit.xml"
Paratest refuses to see my phpunit.xml file and then refuses to read it when I use -c
param. Tried 0.7.1 and dev-master.
tests/phpunit.xml
file:
<phpunit bootstrap="./bootstrap.php" colors="true">
<testsuites>
<testsuite name="Unit Tests">
<directory>./AppTest</directory>
</testsuite>
</testsuites>
</phpunit>
Reproduce:
$ composer require brianium/paratest:dev-master
$ cd tests
$ ../vendor/bin/paratest
[RuntimeException]
No path or configuration provided (tests must end with Test.php)
paratest [-p|--processes="..."] [-f|--functional] [--no-test-tokens] [-h|--help] [--coverage-clover="..."] [--coverage-html="..."] [--coverage-php="..."] [--phpunit="..."] [--runner="..."] [--bootstrap="..."] [-c|--configuration="..."] [-g|--group="..."] [--exclude-group="..."] [--stop-on-failure] [--log-junit="..."] [--colors] [--path="..."] [path]
$ ../vendor/bin/paratest -c phpunit.xml
Could not read "phpunit.xml".
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 16 (8 by maintainers)
Commits related to this issue
- #100 tolerance for chdir in bootstrap file — committed to paratestphp/paratest by julianseeger 10 years ago
I’ve got it. https://github.com/julianseeger/test100/pull/1
I need to chdir to app root (from
./tests
to./
) in order to run ZF2 app properly (with all configs that use relative paths). My bootstrap file doeschdir()
which doesn’t bother PHPUnit, but breaks paratest.