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

Allow test selection to be empty #1420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Kingdutch
Copy link

In our CI we split out test jobs based on folder. Additionally we run each .feature file individually so we can create output test groups. However, due to how we've arranged our tags and our test matrices it could be that Behat is called with a path to a file that has all tests excluded using a tag.

The change in this PR provides an option to mute this error and prevent a CI from failing when no tests were executed deliberately.

Fixes #1389

This allows CIs to pass when running in a way that all scenarios in a
feature file are disabled.

Fixes Behat#1389
Kingdutch added a commit to goalgorilla/open_social that referenced this pull request Jan 19, 2023
It's possible with our new tag system that we run a feature file in a
job but that all the scenarios in that file are filtered out. In the
default state this would be a nerror in Behat. This is good because it
lets developers know they may have forgotten something.

However, we don't want our CI to fail on this since it's also something
that could just happen because we run each feature file on its own.

See Behat/Behat#1420
Kingdutch added a commit to goalgorilla/open_social that referenced this pull request Jan 19, 2023
It's possible with our new tag system that we run a feature file in a
job but that all the scenarios in that file are filtered out. In the
default state this would be a nerror in Behat. This is good because it
lets developers know they may have forgotten something.

However, we don't want our CI to fail on this since it's also something
that could just happen because we run each feature file on its own.

See Behat/Behat#1420
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.

pass test cases having scenarios with skipped tags
1 participant