Skip to content

Commit

Permalink
Merge pull request #108 from rask/rask-patch-1
Browse files Browse the repository at this point in the history
Add section about profile overrides in behat.yml
  • Loading branch information
everzet committed Jul 24, 2016
2 parents 5d6a407 + e65e118 commit 3a21858
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions guides/6.profiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,58 @@ all of your parameters under the ``default:`` root:
# behat.yml
default:
#...
Overriding ``default`` params
-----------------------------

Each profile is an extension of the ``default`` profile. This means you can
define a new profile that overrides configuration parameters defined in the
``default`` profile.

Let's assume we have a ``default`` profile as such:

.. code-block:: yaml
# behat.yml
default:
suites:
default:
filters:
tags: "@runthisonlyondefault"
Now we want a profile that changes the tag which is to be run in the default
suite. We can add the profile and just override:

.. code-block:: yaml
# behat.yml
default:
suites:
default:
filters:
tags: "@runthisonlyondefault"
profile1:
suites:
default:
filters:
tags: "@runthisonlyonprofile1"
Or maybe we want to unset the tag filter for a profile:

.. code-block:: yaml
# behat.yml
default:
suites:
default:
filters:
tags: "@runthisonlyondefault"
profile1:
suites:
default:
filters: ~
Environment Variable - BEHAT_PARAMS
-----------------------------------
Expand Down

0 comments on commit 3a21858

Please sign in to comment.