Code Monkey home page Code Monkey logo

Comments (3)

everzet avatar everzet commented on May 25, 2024

U r doing something crazy :-) Explain how you installed behat and how you use it (what command you call from where).

from behat.

Ziiweb avatar Ziiweb commented on May 25, 2024

Hi Konstantin!

I just installed Behat as you say here http://docs.behat.org/quick_intro.html#method-1-pear

Anyway, when right now I call "behat --description" I'm getting this:

~$ behat -d

[InvalidArgumentException]
Features path "/home/me/features" does not exist

behat [-c|--config="..."] [-p|--profile="..."] [--init] [-f|--format="..."] [--out="..."] [--colors] [--no-colors] [--no-time] [--lang="..."] [--no-paths] [--no-snippets] [--snippets-paths] [--no-multiline] [--expand] [--story-syntax] [-d|--definitions] [--name="..."] [--tags="..."] [--rerun="..."] [--strict] [features]

Then I installed BehatBundle on Symfony 2.0.3

Javi

from behat.

everzet avatar everzet commented on May 25, 2024

First, Behat doesn't gets step definitions from space :-) In order for him to read them, you should show him where to search.
By default, your descriptions live in Context class: http://docs.behat.org/guides/4.context.html. So in order to define and list them, you should create that class first. The shortest way to do this is with behat --init: http://docs.behat.org/quick_intro.html#basic-usage.

When you call behat without arguments, it assumes, that you have features folder (which contains your features AND context) inside the current working directory, which in your case is not.

Next, BehatBundle comes with it's own behat runner, which you should use instead of behat: app/console behat. How to use it you should read here: http://docs.behat.org/bundle/index.html#prepare-your-bundle-for-behat

To see the list of Mink steps as in article on our blog, you should follow the steps in this manual: http://docs.behat.org/cookbook/behat_and_mink.html. Or in this, in case you want to use BehatBundle: http://docs.behat.org/bundle/index.html#mink-integration-minkcontext

And i think it would be better if you could just read the documentation more carefuly, cuz everything i've just said are well explained there ;-)

from behat.

Related Issues (20)

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.