Skip to content

fauxalgore/BehatSayExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BehatSay

CircleCI

This Behat Extension uses the say command to speak aloud your Behat steps as they run.

Configuring

This extension takes configuration for a default voice. Voices can also vary based on the (Drupal) user role. Enable the extension by adding the following to your behat.yml file.

    FauxAlGore\BehatSayExtension:
      default_voice: Fiona
      roles:
        administrator: Pipe Organ
        content_administrator: Alex

Adapt the configuration to use whichever say voices you prefer. To see a list of all available voices run say --voice=\?

Benefits

By speaking your Behat commands aloud, this extension highlights poorly constructed Behat steps. Behavior Driven Development encourages using domain-specific language. If your steps are written around CSS selectors, they will sound absurd.

Additionally, varying voices by user role will encourage deeper consideration of the role used for a given scenario.

About

Speak Behat commands aloud with the say command

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages