PHP

PHPUnit-Webdriver: 02 - Composer Conflicts adding drupal-extension

Ran into errors trying to install drupal/drupal-extension due to symphony/process 3.4.1

  • wiped some dependencies
  • installed drupal-extension
  • then added guzzlehttp & facebook/webdriver

 

Previously Installed

phpunit 7

behat/behat

behat/mink

facebook/webdriver

 

drupal/drupal-extension throwing errors for symphony/process 3.4.1(?)

 

backed out

behat/behat

behat/mink

facebook/webdriver

guzzlehttp/guzzle

 

then installed

drupal/drupal-extension

guzzlehttp/guzzle

facebook/webdriver

 

all ok


 

 

 

Installation failed, reverting ./composer.json to its original content.

Behat Mink: 000 - Blocking Issues in Mink for Drupal

  • Mink is probably a great tool for basic websites that don't implement a heavy back-end system.
  • Mink COULD be a winner IF
    • migrates to selenium3 webdriver
    • exposes the entire selenium3 api
    • provides a means to send XPATH directly to selenium api
      • currently catches, parses, translates, THEN sends to api
    • provides a means to send CSS directly to selenium api
      • currently catches, parses, translates, THEN sends to api

Behat front end is a solid Cucumber BDD Engine

  • Still requires a sensible & well-designed test framework to hook into
  • Design the framework around PHPUnit
  • Use Behat to provide BDD translation for feature files
  • BDD isn't test...

Behat Mink: 09 - CLI Options Behat v2.5 Guide

 

Gherkin Filters

If you want to run only part of your suite, or some scenarios, you can do it with name or tags filters.

Tag filters supports three logical operators:

  • Tags separated by commas will be combined using the OR operation
  • Tags separated by && will be combined using the AND operation
  • Tags preceded by ~ will be excluded using the NOT operation

For example:

Subscribe to PHP