~ubuntu-branches/ubuntu/wily/cucumber/wily-proposed

« back to all changes in this revision

Viewing changes to features/run_specific_scenarios.feature

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier, Antonio Terceiro, Cédric Boutillier
  • Date: 2015-06-20 16:52:32 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150620165232-hznc8mxma08er27p
Tags: 2.0.0-1
[ Antonio Terceiro ]
* debian/cucumber.pod: fix typo in manpage (Closes: #767215)

[ Cédric Boutillier ]
* Imported Upstream version 2.0.0
* rename the file in debian/missing-source to remove -min suffix, and make
  lintian happy
* reproducibility: use last changelog date to build the manpage
* update 0004-Update_default_binary_path.patch
* drop 0001-Remove-rubygems-bundler-stuff-from-spec_helper.patch, not needed
  anymore
* build-depend on pry
* depend on ruby-cucumber-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Feature: Run specific scenarios
2
 
 
3
 
  You can choose to run a specific scenario using the file:line format
4
 
 
5
 
  Background:
6
 
    Given a file named "features/step_definitions/steps.rb" with:
7
 
      """
8
 
      Given(/pass/) {}
9
 
      Given(/fail/) { raise "Failed" }
10
 
      """
11
 
 
12
 
  Scenario: Two scenarios, run just one of them
13
 
    Given a file named "features/test.feature" with:
14
 
      """
15
 
      Feature: 
16
 
        Scenario:
17
 
          Given this is undefined
18
 
 
19
 
        Scenario: Hit
20
 
          Given this passes
21
 
      """
22
 
    When I run `cucumber features/test.feature:5 -f progress`
23
 
    Then it should pass with:
24
 
      """
25
 
      1 scenario (1 passed)
26
 
      """
27
 
 
28
 
  Scenario: Single example from a scenario outline
29
 
    Given a file named "features/test.feature" with:
30
 
      """
31
 
      Feature:
32
 
        Scenario Outline:
33
 
          Given this <something>
34
 
 
35
 
          Examples:
36
 
            | something    |
37
 
            | is undefined |
38
 
            | fails        |
39
 
 
40
 
        Scenario: Miss
41
 
          Given this passes
42
 
      """
43
 
    When I run `cucumber features/test.feature:8 -f progress`
44
 
    Then it should fail with:
45
 
      """
46
 
      1 scenario (1 failed)
47
 
      """