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

Add ability to run a single test/feature #68

Open
rcernich opened this issue Mar 10, 2017 · 3 comments
Open

Add ability to run a single test/feature #68

rcernich opened this issue Mar 10, 2017 · 3 comments
Milestone

Comments

@rcernich
Copy link

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

@vrutkovs
Copy link
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

@vrutkovs vrutkovs added this to the 0.2 milestone Mar 10, 2017
@rcernich
Copy link
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.

@vrutkovs
Copy link
Member

vrutkovs commented Mar 14, 2017

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants