mglaman / intellij-drupal-run-tests

Provides a run configuration that executes Drupal's test runner (for Simpletest, Unit, Kernel, Functional, FunctionalJavascript.)
MIT License
24 stars 2 forks source link

Getting started #16

Closed niccottrell closed 8 years ago

niccottrell commented 8 years ago

I'm having trouble getting the include paths setup properly in PhpStorm and Drupal 8. When trying to launch the tests, I get:

/usr/local/bin/php /Users/nic/git/cn-d8/core/scripts/run-tests.sh --php /usr/local/bin/php --url http://localhost:8080 --concurrency 1 --color --all PHP Fatal error: Interface 'Symfony\Component\DependencyInjection\ResettableContainerInterface' not found in /Users/nic/git/cn-d8/core/lib/Drupal/Component/DependencyInjection/Container.php on line 53

My paths include the /vender/X from composer, plus:

/core/lib /core/modules /modules

What steps am I missing?

mglaman commented 8 years ago

@niccottrell hm, so can your Drupal installation even run? The PHPStorm runner doesn't attempt to create its own test runner, but rather provides a GUI for configuring and executing run-tests.sh. It looks like you may need to run composer install from your Drupal root.

niccottrell commented 8 years ago

I guess I misunderstood the way this works. My local dev Drupal env doesn't seem to be configured correctly. I get the same error if I manually go to /Users/me/git/d8 and run php core/scripts/run-tests.sh --url http://localhost:8080. I can run run-tests.sh from our development server.

mglaman commented 8 years ago

You need to run composer install. I'm going to try and update the requirement checks based on this.