Skip to content

Add ability to run a single test/feature #68

Open

Description

@rcernich

When doing test development, some suites may take hours to run, which makes things difficult if one is trying to debug a single test.

Activity

  1. vrutkovs commented on Mar 10, 2017

    @vrutkovs
    Member

    That would depend on #58 - pass parameters to behave to filter out features/scenarios by tag or start a scenario at particular line and a file

  2. added this to the 0.2 milestone on Mar 10, 2017
  3. rcernich commented on Mar 14, 2017

    @rcernich
    Author

    I understand we can use @wip to run single features/scenarios, and I'm using this as a workaround, but this requires modifying the actual tests. Other test frameworks allow you to include or exclude specific test cases from a test run.

  4. vrutkovs commented on Mar 14, 2017

    @vrutkovs
    Member

    We're limited to behave as a testing framework, so the options are described at http://pythonhosted.org/behave/tutorial.html#controlling-things-with-tags:

    1. Run scenarios marked with specific tag(s): -t @tag
    2. Run scenarios with a specific tag(s): -t ~@tag
    3. Run a particular scenario: features/name.feature:<line of the scenario>

    Anything else we might want to add?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions