phpunit has stopped working for me, locally. When I first set up bedrock/trellis for pb it worked no problem. It’s now telling me the phpunit command on remote server is ‘empty’. My config is set up the same/similar as is outlined here: https://docs.pressbooks.org/local-development/phpstorm-configuration/
I’m running out of troubleshooting steam - anyone have similar issues, or know what’s changed? I can’t say that I’m aware of anything changing on my end.
PHPUnit Library -> Path To Script: is where the autoloader lives in vagrant, not on my computer.
It was important to map the remote path to the local path.
In the past things stopped working for me because I went from http to https (xdebug) so I had to add a second server for port 443, and my paths used to be called example.com now it’s pressbooks.test.
PS: I often just run the tests from inside vagrant at the command prompt.
For Pressbooks:
vagrant ssh
install-wp-tests
cd /srv/www/pressbooks.test/current/
composer test
Here’s how I test other plugins, same first three steps then:
PB_PLUGIN=pressbooks-lti-provider composer test
Where pressbooks-lti-provider is your plugin’s dir slug.
Here’s a peek inside /srv/www/pressbooks.test/current/compose.json(I make modifications in there for dev work, private repos,don’t commit everything back because it’s not always generic)
@dac.chartrand thank you very much for this documentation. Fortunately phpunit config is solid on my non-bedrock development instance of PB so was able to use that today. When I have time to look into it, I’ll report back with what the problem was. Thanks again, this is an amazing amount of detail. I appreciate it.