---
description: Zero-config behat command using Drush.
---

# Drush Behat Params

{% embed url="https://github.com/operations-platform/drush-behat-params" %}

To use behat, you have to tell it where your code is and what URL it's running under.

This is very difficult when you have dynamic environments, such as when running pull requests.

This package provides a `drush behat` command that automatically sets the `BEHAT_PARAMS` environment variable to use the file path and URL that Drush itself is using.

With this command, you can even run behat tests remotely using drush aliases, including on hosted platforms like pantheon.

<figure><img src="https://3263112067-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwthQiMw8fixu3bEHTo5u%2Fuploads%2FKvCwzyAY7Vzbrk1zFJ69%2Fimage.png?alt=media&#x26;token=7d8b3a21-70e0-43a4-86ad-1fe3129c5c70" alt=""><figcaption><p>Behat tests running in CI environments using GitHub runners.</p></figcaption></figure>

