Sha256: 0c63e6c2b60ebc0d2fb47075bf188616828840108f8f4c2317c6228fa3e43b07

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

Feature: Running Groups

  You can specify multiple groups and use the command line option "--group" or
  "-g" to run only that group.

  If you don't specify a group, it will run the default group. And if you don't
  specify which group a command is in, it will be in the default group.

  Example:

  ``` ruby
  group :install do
    run "bundle install"
  end
  ```

  Background:
    Given the configuration:
    """
    run "echo from the default group"
    group :install do
      run "echo from the install group"
    end
    """

  Scenario: Running the default group.
    When I run `scripted`
    Then the output should contain "from the default group"
    But the output should not contain "from the install group"

  Scenario: Running another group
    When I run `scripted -g install`
    Then the output should contain "from the install group"
    But the output should not contain "from the default group"

  Scenario: Running multiple groups
    When I run `scripted -g install,default`
    Then the output should contain "from the install group"
    And the output should contain "from the default group"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scripted-0.0.1 features/running_groups.feature