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

Test executed even if we use a @pending or @Ignore annotation #2824

Open
ikallala opened this issue May 16, 2022 · 2 comments
Open

Test executed even if we use a @pending or @Ignore annotation #2824

ikallala opened this issue May 16, 2022 · 2 comments
Labels
can't-fix We don't know how to do this at the moment

Comments

@ikallala
Copy link

ikallala commented May 16, 2022

Test is executed when we use a @pending annotation and its execution result is displayed in the console. (This is a sample project to reproduce the issue https://github.com/ikallala/SampleSerenityTest/tree/master ," mvn clean verify " to run the tests)
Test was marked as fail in console report even it's pending, and it is marked as pending in serenity report with the execution time (which it is supposed to be 0s).

image

@wakaleo
Copy link
Member

wakaleo commented May 16, 2022

@pending and @ignore tags do not affect Cucumber execution - Cucumber has no knowledge of them - so you need to skip them as part of your cucumber options.

@wakaleo
Copy link
Member

wakaleo commented May 16, 2022

It's just the way Cucumber works, nothing Serenity can do about it.

@wakaleo wakaleo added the can't-fix We don't know how to do this at the moment label May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't-fix We don't know how to do this at the moment
Projects
None yet
Development

No branches or pull requests

2 participants