Skip to content

How to collect information about Ignored (@ignore) scenarios? #544

Discussion options

You must be logged in to vote

When a scenario is marked with the @ignore tag, none of the user Binding code will be invoked. The code generated from the feature file will first check for that tag and if found will skip execution of its steps.

There is an Execution Event published (the ScenarioSkippedEvent) which you could capture by writing a run-time plug-in. Unfortunately, that event won't tell you which scenario it was that was skipped. 😞

Here is the relevant code within the TestExecutionEngine that handles the scenario skipped situation:

        public virtual void OnScenarioSkipped()
        {
            // after discussing the placement of message sending points, this placement causes far less effort than rewri…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@volodymyr-shulha
Comment options

@volodymyr-shulha
Comment options

@SunNeverSets
Comment options

@clrudolphi
Comment options

Answer selected by 304NotModified
Comment options

You must be logged in to vote
8 replies
@SunNeverSets
Comment options

@clrudolphi
Comment options

@SunNeverSets
Comment options

@volodymyr-shulha
Comment options

@volodymyr-shulha
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants