Skip to content

Use comments to skip tests instead of a tag - #1143

Merged
wedaly merged 1 commit into
masterfrom
will/skip-tests-with-comments
Sep 27, 2013
Merged

Use comments to skip tests instead of a tag#1143
wedaly merged 1 commit into
masterfrom
will/skip-tests-with-comments

Conversation

@wedaly

@wedaly wedaly commented Sep 26, 2013

Copy link
Copy Markdown
Contributor

Lettuce behaves strangely with "exclude" tags. If you have a scenario marked with two tags:

@skip @tag_1
Scenario: ...

And you run lettuce with --tag -skip -tag tag_1 (EXCLUDE skip, INCLUDE tag_1), then the scenario will get run. Looking at the code, lettuce seems to handle this inconsistently: if a scenario has just ONE tag, then it will be run only if it satisfies ALL the specified tags.

I'm going to submit a PR later to the lettuce project, but until then, the quick fix is to comment out the scenarios instead of relying on skip tags. This will allow me to correctly shard the tests in the Jenkins cluster.

@jzoldak

@jzoldak

jzoldak commented Sep 27, 2013

Copy link
Copy Markdown
Contributor

👍

wedaly pushed a commit that referenced this pull request Sep 27, 2013
Use comments to skip tests instead of a tag
@wedaly
wedaly merged commit 9385b57 into master Sep 27, 2013
@wedaly
wedaly deleted the will/skip-tests-with-comments branch September 27, 2013 12:33
cocococosti pushed a commit to Pearson-Advance/edx-platform that referenced this pull request Aug 18, 2020
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

Successfully merging this pull request may close these issues.

2 participants