tanarurkerem / drupalextensionstarterkit Goto Github PK
View Code? Open in Web Editor NEWStarter kit for Drupal Extension for easy starting.
License: GNU General Public License v3.0
Starter kit for Drupal Extension for easy starting.
License: GNU General Public License v3.0
I get this Error when I try to run bin/behat.
[Behat\Testwork\ServiceContainer\Exception\ExtensionInitializationException] 'Behat\MinkExtension\Extension' extension file or class could not be located.
Did I install incorrectly? The file doesn't look like it is there.
Excited about this kit as it looks like it greatly simplifies installation.
I cloned it outside of a Drupal installation, so when running bin/behat -dl I received the error:
[Drupal\Exception\BootstrapException]
Unable to determine Drupal core version. Supported versions are 6, 7, and 8.
I got through the error in two different ways: 1) by disabling the Drupal API driver in behat.yml and 2) by moving the starter kit into /sites/all/modules/custom/my_module/
Sometimes I would like to run tests on remote machines so would be nice to configure this by script.
What do you think about having the setenvironment.sh script prompt "Will tests be run on same machine as the web server?" If on same machine, use Drupal API driver and prompt for absolute path to Drupal root, otherwise disable Drupal API driver and don't prompt for Drupal root?
I may be able to contribute a patch.
Would be great to add a default travis.yml file for this project. Could just install a default drupal site and run one or two scenarios. Would you be interested in that or should it be a separate project?
When I run bin/behat,
Scenario: Access homepage # features/testEnviromentWorks.feature:3
When I go to homepage
Then the response status code should be 200
1 scenario (1 undefined)
2 steps (2 undefined)
0m0.18s (33.24Mb)
--- Snippets for the following steps in the default suite were not generated (check your configuration):
When I go to homepage
Then the response status code should be 200
This is probably because contexts have been split up but not added to the behat.yml. See https://behat-drupal-extension.readthedocs.org/en/master/localinstall.html (Note, I've done a big docs cleanup that hasn't been merged yet, so while the example of adding the contexts is accurate, there are a lot of details in the docs that aren't necessarily up-to-date.)
I initially pasted the wrong output. I corrected that.
I was trying this out in response to https://www.drupal.org/node/2185971 on Ubuntu 14.04.
I ran into a few issues, the first of which was:
curl: Remote file name has no length!
curl: try 'curl --help' or 'curl --manual' for more information
mv: cannot stat ‘selenium-server-*’: No such file or directory
curl version: 7.35.0
The next issue I ran into:
$ bash setenviroment.sh
Your Base URL (default: http://drupal.loc/): http://seven.l
sed: can't read .bak: No such file or directory
rm: cannot remove ‘behat.yml.bak’: No such file or directory
Run tests from webserver and use Drupal API driver? (y/n):y
sed: can't read .bak: No such file or directory
sed: can't read .bak: No such file or directory
sed: can't read .bak: No such file or directory
It's possible to complete the setup. They're just like to prove disconcerting
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.