Comments (3)
U r doing something crazy :-) Explain how you installed behat and how you use it (what command you call from where).
from behat.
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.
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)
- Step/Scenario details black color HOT 1
- Same step pattern, different step types are not allowed; additionally step type is ignored in feature files HOT 4
- Formatter return value null when Symfony error
- Adding validaton for data in PyString. HOT 2
- Suite hooks defined with Attributes not working HOT 3
- Transformations have no attribute to define them
- Skip a scenario entirely based on @BeforeScenario HOT 4
- SSL certificate problem: unable to get local issuer certificate HOT 3
- Symfony 7 support HOT 1
- [bug] jUnit formatter returns time as int but should use float HOT 1
- [Bug] jUnit formatter produces empty testsuite names, it could use feature file as suite name HOT 5
- Parallelization of tests HOT 1
- SigintController does not check for both pcntl-functions used in execute() HOT 6
- [Bug?] Reruns of Scenario outlines lead to potentially confusing scenario names HOT 2
- Exception thrown when test fails with junit formatter HOT 1
- Documentation for StepEvent hooks in Behat 3.0 HOT 8
- Add support for Rule keyword (Gherkin 6) HOT 2
- Skip or improve translation process
- how to have a context/class per feature ?
- New release for Symfony 7 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from behat.