Giter Club home page Giter Club logo

drupalextensionstarterkit's People

Contributors

agold2 avatar tanarurkerem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

drupalextensionstarterkit's Issues

Error when running bin/behat

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.

Configure whether tests are run on same machine as web server

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.

Travis test?

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?

Test feature returns undefined steps

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.

Selenium not being downloaded

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

Noise from sed looking for .bak files

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.