fwdays | Site for conference `` Frameworks Days | Awesome List library
kandi X-RAY | fwdays Summary
kandi X-RAY | fwdays Summary
Powered by Symfony2. Site for conference "Frameworks Days"
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add users
- Loads the database
- Edit participant .
- Links for Google Calendar
- Load user by OAuth user .
- Pre update event .
- Register a new user .
- Format the message with the given ticket .
- Build the profile form .
- Download ticket action .
fwdays Key Features
fwdays Examples and Code Snippets
Community Discussions
Trending Discussions on fwdays
QUESTION
What is the right approach for using FooContext
classes in behat?
What it is by the docs:
A simple mnemonic for context classes is: “testing features in a context”. (...), the way you will test those features pretty much depends on the context you test them in.
In the docs FeatureContext
seems for me only to be a dummy context file so that you can fast create a behat test.
The context class should be called FeatureContext. It’s a simple convention inside the Behat infrastructure. FeatureContext is the name of the context class for the default suite.
Its not saying me directly that it has to be a context file per feature.
The only real other examples in the docs are contexts like ApiContext
or WebContext
.
ANSWER
Answered 2017-Nov-10 at 11:22Usually I prefer to divide context and features as follows:
- One folder for each domain subject
- One feature / context file for each action you can perform onto this subjects
That way you'll end up with a single suite using more than one context but with all context divided with a single responsibility.
Quick example
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fwdays
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page