A lot of current installation instructions for Behat seem to imply that a user is either using a flavour of Linux or OSX. However, not all developers have that options and some are using Windows.
I myself am working on building a global installation of Behat on a Windows machine. I'm running into a few problems and once I can figure out the solution, I'll be building a tutorial for Windows users. Until I am able to sort it out, I figured I would share where I am at to see if anyone in this group can help me or even offer suggestions on the best way to handle a global Behat installation in a WAMP type environment.
My biggest hold up right now is trouble with curl for pulling composer down. I do realize that there is a Windows installer for composer, however I would think that if someone on a Windows box wanted to use the curl command, there has to be a way to do it.
In one attempt, I had to enable openssl and curl in the wampserver stack and then I could do a local call through the web server to get it. However, this did not give me the option or ability to offer Behat globally to the other sites I would like to test. I wonder if it is because I am still learning and not quite understanding how the yml file works with Behat. Always a possibility.
I admit I am new to these concepts, but I figured if I wanted to do it right, the best thing to do is ask. Is anyone aware of a walk through, guide, or have any personal experience with setting up Behat globally on a WAMP stack?
Comments
I now have it working.
Well, it seems during my trial and error I have learned quite a bit more about Behat and how it functions. I was able to install Behat, set it up with DrupalExtensions and the Jira Extension, run a few tests, and update JIRA in the process.
The solution involved using Cygwin. I have to thank Eliza411 for the inspiration that lead me to this type of a solution. I plan to have my step-by-step for how I succeeded written up soon to share with others who may have a desire (or force) to build a Behat environment on a WAMP stack of some variety.
Hopefully it can help others!
Windows 7 without Cygwin
I'm just installing Behat on my Windows 7 machine without resorting to Cygwin ;-)
Actually, installing Composer with the installer is quite straightforward. I then went ahead using the instructions at http://comm-press.de/en/blog/generic-web-behat-test-setup
I haven't finished the whole process yet, but stumbled across two minor issues:
"behat/mink-goutte-driver": "*",
from the composer.json).composer install
from a console which knows about Git.I will post complete Windows instructions as soon as I got the whole thing up and running :-)
Frank
Frank
My LinkedIn profile
I love that there are options.
I ran into several issues with curl, complaints about bootstrap, etc. Once you're finished with yours, and I am finished with mine, our write ups can be used to allow people to choose options that best fit their dev environments. :)
Gotta love the options!
Installing Behat on Windows
I've just posted instructions for installing Behat on Windows at http://comm-press.de/en/blog/installing-behat-windows
I also plan to make this a wiki page in this group.
Any feedback welcome!
Frank
My LinkedIn profile
Installing the Drupal Extension for Behat
I've just published another blog post on using Behats on Windows:
http://comm-press.de/en/blog/installing-drupal-extension-behat
Frank
My LinkedIn profile
not accessible the link any more
@Frank Ralf your blogpost no more exists (or the link is bad)
A step by step guide to installing Behat 3 for Windows
Getting set up with Behat 3 on Windows