Closed CaMer0n closed 6 years ago
@CaMer0n
The "Custom working directory" should be left blank because the test suites are already configured to expect e107 in the subfolder ./e107
.
You're encountering a problem with the mysql
command because it doesn't exist in your environment, so the e107 database dump cannot be imported. The mysql
command is used as a "populator", which you can find in ./codeception.yml
I'm not sure how to make that platform-independent yet, but perhaps you can try providing the full path to your Windows MySQL binary instead of just mysql
?
Here's additional information for others who might be using PhpStorm.
PhpStorm doesn't support Git submodules, so using Git 1.8.2 or newer, run the following command:
git submodule update --init --recursive --remote
That will update the two submodules that this project currently uses:
PhpStorm may or may not detect the new Git roots (the submodules). Register those roots.
You can do this manually in File » Settings… » Version Control (Ctrl+Alt+s, then Version Control) and then selecting each unregistered root and pressing the green plus button:
You should now be able to work with e107's code in the e107
folder:
You've already done the composer update
step, so Codeception should be installed to ./vendor/bin/codecept
. Ensure that PhpStorm sees it in Settings » Languages & Frameworks » PHP » Test Frameworks:
See also: Testing with Codeception
The Run/Debug Configurations should be configured like @CaMer0n's, except for the "Custom working directory", which should be left blank:
@CaMer0n: MySQL importing should be platform-independent now after f080402675b6aebe4a73bba3ed1a82461d737239.
@CaMer0n: Correction: f080402 doesn't fix the problem. a18ca98f9a41dc1d36a8e651c0365d699a7b98d5 does, but I think you're having a different (and unrelated) issue now.
Thank you. I submitted an issue with jetbrains. https://intellij-support.jetbrains.com/hc/en-us/requests/1255499?page=1
hi @Deltik,
It looks awesome! I think I almost got it working with PHPStorm.
Codeception configuration modified with mysql info (done):
dsn: 'mysql:host=localhost;dbname=e107v2' user: 'root' password: 'root'
Here's the thing.. currently my working setup is like this:
I believe your idea, when applied to my situation is to have something like this:
But if I were to try to keep my current setup, do you know how I might go about configuring it? ie. to keep the testing scripts in
phpunit
a subfolder ofe107v2
?Needless to say, I'd like to disable 'cPanel' deployment when running locally on Windows.
Using "RUN" in PHPStorm:
And here's the result if I remove the "Custom Working Directory" value from the panel above: