question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@ignore on Scenario still executes it

See original GitHub issue

When adding @ignore on a Scenario does not ignore the Scenario, but still executes it.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:3
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

7reactions
jbproscommented, Feb 6, 2015

You need to tell Cucumber to ignore scenarios based on your tag, it doesn’t know the meaning of your @ignore tag.

Not tested:

cucumberOpts: {
  require: 'cucumber/features/steps/*_steps.js',
  format: 'pretty',
  tags: '~@ignore'
}

See cucumber.js --help for more info.

4reactions
PeterAronZentaicommented, Apr 7, 2017

~@skip approach isn’t working - at least on MacOS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ignore particular scenario in cucumber? - Stack Overflow
I am using cucumber to feed scenario and java as a language. I need to ignore particular scenario, while running an automation test....
Read more >
Java How to ignore particular feature or scenario in cucumber?
You can ignore or skip Cucumber Tests using tags. This works both for Scenario as well as Feature. You can skip a scenario,...
Read more >
PART 9 - How to #SKIP Scenarios to Execute in Cucumber BDD
In this video, I have explained - How to Skip Scenarios to Execute in Cucumber BDD.In Cucumber there are two ways of skipping...
Read more >
Cucumber Ignore Test - YouTube
You can ignore Cucumber Tests using tags. not word is used along with tags to ignore the test. This works both for the...
Read more >
Cucumber Tags - Javatpoint
By default, Cucumber executes all the scenarios inside the feature file, but if we need to execute or skip any specific scenario under...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found