Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Drupal414: David Snopek and Drupal Testing with Behat

No description
by

James Carlson

on 22 November 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Drupal414: David Snopek and Drupal Testing with Behat

David Snopek
Steve Klebar: MSFT sysadmin, SQL Server, etc. "Microsoft crap," but for other work I do Drupal and Java projects for a startup. I want to help people get through the the self-learning of Drupal and provide support.
Jacob Liexner: Work in Startup with Steve; student at UWM. Purpose: get more understanding of Drupal, how to use it, and how to integrate it with our project.
Lem Lambert: Marketing guy freelancing and I favor Drupal and other CMS systems so I can learn how to polish that skill and I do writing, etc.
Lovell JR: I do Drupal development on the side. Here to get better at Drupal and coding. Haven't made my own modules yet, but I know PHP so I'm close.
Lovell: Student at UWM, work with Steve on Java and Drupal rpoject, and I'm here to learn Drupal I guess.
Jim Jennings: Lead Dev at Keystone Click, Drupal House, want to learn what this is about.
David Snopek: Freelance drupal developer, getting more and more infolved in Drupal open source community. Maintain about 20 projects on D.O, co-maintain Panopoly; here because I'm a freelancer and I'm lonely. I don't get to hardcore jam with other people who know drupal very often.
WHO
DrupalCon CHICAGO Dec 7 $30
MidCamp - Midwest Drupal Regional Camp - Want to get involved? - CHI year 1
StartupWeekend: We built somethin' in Drupal, and we'll show it off!
January 24, 25 - Global Sprint Weekend - Want to start doing sprints w/this group; doesn't have to be D8 - we can format this and pick a goal or goals (4 hours)
WHAT'S COMING UP
An Introduction to Behat and Automated Behavioral Testing
Dependencies that break things
Vague requirements
Bad user testing
}
BEHAVIORAL TESTING CAN HELP
Integration
Unit
Steps and outcomes
Automated testing:
GOUTTE
SELENIUM
MINK
pulls html and analyzes
runs a browser
BEHAT:
HUMAN READABLE TEST INSTRUCTIONS
Non-coder
Outside - IN methodology
BEHAVIOR DRIVEN DEVELOPMENT
What do I want it to do?
The narrative
Feature: [title]
In Order to [benefit]
As a [role]
I need to [feature]
Scenario: title
Given: context
When:
And:
Then:
Acceptance Criteria:
WRITING A BEHAT TEST
GET TO YOUR DRUPAL
DRUSH
composer.json
STEPS:
Drupal Behat Extension
Includes vocabulary for Drupal
Vocabulary can be extended
features/bootstrap/FeatureContext.php
Fewer steps = Good
1: WRITE FEATURES
2: USE ALL FEATURES
3: WRITE THE CODE LATER
Duplications of Groups of Steps = BAD
Coder
zombie.js
1. copy the behat directory in mvpcreator
2. see the drupal behat extension project page
Rafael: From Green Bay, work for Cellcom, I am a Drupal developer for an internal system we use for Ticketing which is based on Drupal. Want to learn how else people use Drupal; we use it in a unique way, so it's cool to see how everyone has a different perspective on the system. Want to learn some tips I wouldn't have thought of otherwise. [Don't use ticket modules, use Flags and Views to assemble the system, with crazy custom fields in CCK. Make a lot of modules for specific stuff you can't do in Contrib. Built in Fields API, integrates with Token, converts device IDs to different formats, etc. and a lot of data, content is pumped into it. Been working on this application for 1 year soon. Started from nothing in Drupal, as a half-FTE effort. Contrib takes you far, but the rest you need to make yourself.]
Elliot: From Green Bay, with Greenbaynet, we do Drupal Development, trying to figure out on the way when we started, we tumbled into it around 2004, Drupal 4ish; Not quite freelance, but to that point. Main design person moved to Portland and now works for Metaltoad. Would like to hear amazing Drupal stuff.
Paul: Work with James down street; want to learn more, beginning.
Drupal414
DO YOU DEAL WITH:
Full transcript