You are here

README.txt in Entity Construction Kit (ECK) 7.2

Same filename in this branch
  1. 7.2 README.txt
  2. 7.2 tests/README.txt
Same filename and directory in other branches
  1. 7.3 tests/README.txt
Setting up your environment for testing
=======================================

With composer, setting up things is fairly easy.

1) Download and install the composer manager module: 
   https://drupal.org/project/composer_manager

2) Run the drush command: "drush composer-manager install".
   If you are already using composer_manager with other modules, simply run:
   "drush composer-manager update"
   This should set up all of your dependencies and all of the libraries necessary
   to run behat tests.
 
By default, composer_manager will place all of the libraries at /sites/all/vendor.
Inside of the vendor directory there is a bin directory and inside of it we can
find the behat executable.

to run ECK's behat tests, first we need to configure behat with your local settings.

In eck/tests/behat/ there is a default.local.yml file. That is a sample configuration
file, that should work well for most people. cp the configuration file into the
same directory, and rename it behat.yml. Inside of the file there are 3 comments
that let you know things that you might have to configure for the tests to run
in your machine.

After configuring everything, eck/tests/behat, simply execute 
<path-to-vendor-directory>/bin/behat -v

NOTES: 
------
When trying to get things to run in Ubuntu 13.10, I ran into a few problems
with phpunit.

Following the instructions in these 2 articles (Given that you get the same
errors I did), fixed the problem for me:

http://stackoverflow.com/a/5939737
http://stackoverflow.com/a/8079653

File

tests/README.txt
View source
  1. Setting up your environment for testing
  2. =======================================
  3. With composer, setting up things is fairly easy.
  4. 1) Download and install the composer manager module:
  5. https://drupal.org/project/composer_manager
  6. 2) Run the drush command: "drush composer-manager install".
  7. If you are already using composer_manager with other modules, simply run:
  8. "drush composer-manager update"
  9. This should set up all of your dependencies and all of the libraries necessary
  10. to run behat tests.
  11. By default, composer_manager will place all of the libraries at /sites/all/vendor.
  12. Inside of the vendor directory there is a bin directory and inside of it we can
  13. find the behat executable.
  14. to run ECK's behat tests, first we need to configure behat with your local settings.
  15. In eck/tests/behat/ there is a default.local.yml file. That is a sample configuration
  16. file, that should work well for most people. cp the configuration file into the
  17. same directory, and rename it behat.yml. Inside of the file there are 3 comments
  18. that let you know things that you might have to configure for the tests to run
  19. in your machine.
  20. After configuring everything, eck/tests/behat, simply execute
  21. /bin/behat -v
  22. NOTES:
  23. ------
  24. When trying to get things to run in Ubuntu 13.10, I ran into a few problems
  25. with phpunit.
  26. Following the instructions in these 2 articles (Given that you get the same
  27. errors I did), fixed the problem for me:
  28. http://stackoverflow.com/a/5939737
  29. http://stackoverflow.com/a/8079653