Welcome Guest, Not a member yet? Register   Sign In
phpUnit test working directory
#4

(11-25-2021, 08:01 AM)paul Wrote: I run tests with :
php 'c:/wamp64/codeigniter4/vendor/phpunit/phpunit/phpunit' --colors=always -c c:/wamp64/codeigniter4/phpunit.xml --testsuite 'app'

I believe you have to run it from 'c:/wamp64/codeigniter4/'. If I run phpunit from outside of the project's dir I have errors too.

Or you may try to play with 'app/Config/Paths.php' (or better .env file) and use absolute paths there. And for test you may even need to adjust yout phpunit.xml and define constants there.
Reply


Messages In This Thread
phpUnit test working directory - by paul - 11-25-2021, 05:53 AM
RE: phpUnit test working directory - by Taras - 11-25-2021, 07:20 AM
RE: phpUnit test working directory - by paul - 11-25-2021, 08:01 AM
RE: phpUnit test working directory - by Taras - 11-25-2021, 09:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB