Skip to content

Metadrop/ddev-behat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

add-on registry tests last commit release

DDEV Behat

Overview

This add-on integrates Behat into your DDEV project, providing a convenient ddev behat command that runs Behat tests inside the web container.

Installation

ddev add-on get Metadrop/ddev-behat
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

Once installed, you can run Behat tests using:

# Run all Behat tests
ddev behat

# Run specific feature file
ddev behat features/example.feature

# Run with specific tags
ddev behat --tags=@smoke

# Get help
ddev behat --help

Configuration

Behat Configuration

Behat configuration should be placed in your project's behat.yml file. Example:

default:
  suites:
    default:
      contexts:
        - FeatureContext
  extensions:
    Behat\MinkExtension:
      base_url: http://web
      selenium2:
        wd_host: http://selenium:4444/wd/hub

Requirements

Behat and its dependencies should be installed via Composer in your project:

ddev composer require --dev behat/behat
ddev composer require --dev drupal/drupal-extension  # For Drupal projects

Credits

Contributed and maintained by @Metadrop

About

DDEV Behat addon. WARNING! This repo is not ready to be used yet!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •