[Django]-How to skip a scenario in Lettuce?

7👍

I was able to find out that this feature is already implemented, just not documented. And the decorators are actually called “Tags”.

@skip_circle
Scenario: My scenario that does stuff
    Given I do stuff
    .
    .

Then run:

lettuce --tag=-skip_circle
./manage.py harvest --tag=-skip_circle #for django

If you leave out the minus sign, you’ll only run tests with that tag. The minus sign tells lettuce to skip the tag.

Leave a comment