| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple set of tools and files to make your Drupal Installation a Testable Drupal Installation. Based on Behat, Mink and using Selenium2, Phantomjs and CasperJs, Testable Drupal provide a basic structure to integrate with your tests.
At this time Testable Drupal has basic tests to
Install and configure your Drupal installation
Download Composer in the root of your project
curl -s https://getcomposer.org/installer | php
{
"require": {
"vincenzodibiaggio/testable-drupal": "*"
},
"minimum-stability": "dev",
"config": {
"bin-dir": "bin/"
}
}
php composer.phar install
Download Selenium server
Download PhantomJs
Download CasperJs - Pay attention: to use all of feature the minimum version is 1.1-beta1 !
Puth both PhantomJs and CasperJs executables in your PATH
Now Testable Drupal support two test suite
(if you launch a behat --init for error you can use the FeatureContext_dist.php to replace the new file)
java -jar selenium-server-standalone-YOUR_VERSION.jar -role hub
phantomjs --webdriver=8080 --webdriver-selenium-grid-hub=http://127.0.0.1:4444
cd vendor/vincenzodibiaggio/testable-drupal/tests
./../../../../bin/behat --config behat_dist.yml features/test.feature
I recommend to you: put both PhantomJs and CasperJs executables in your PATH. They work fine together without configuration ;)
cd vendor/vincenzodibiaggio/testable-drupal/jsTests
casperjs test FILENAME
| Back | FazBrowse Home | New Git URL |