Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background won't work for each scenario when using tags #44

Open
first-developer opened this issue Apr 16, 2013 · 0 comments
Open

Background won't work for each scenario when using tags #44

first-developer opened this issue Apr 16, 2013 · 0 comments

Comments

@first-developer
Copy link

Hi, guys,
Again thanks for your great work of providing a port of cucumber to python language.
Anyway I got an issue using 'tags' and 'Background' in my feature file. Ihave something like this:

@wip
Feature: Using Command class
    In order to execute queries through commands on the terminal
    As an administrator
    I need the Command class for this purpose 

    Background:
        Given I have a command


    Scenario: Create a command without queries
          And I have no queries
         When I request the number of queries on command
         Then I should get 0 as result


    Scenario: Create a command with queries
        Given I have a command
          And I have some queries:
          ...

When I run :

nosetests --with-freshen --rednose --force -v --tags=@wip tests/behavior

It runs only the first scenario using the 'Background' definition, not both scenarios.
Any ideas?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant