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

AutoBindSteps - Tag filtering happens after steps validation #94

Open
Geloloboy opened this issue Aug 31, 2020 · 2 comments
Open

AutoBindSteps - Tag filtering happens after steps validation #94

Geloloboy opened this issue Aug 31, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@Geloloboy
Copy link

It seems that you are unable to filter scenarios using the tags unless all steps have definitions.

As a background, I'm trying to have all feature files inside a single folder and having the capability to run either UI or Integration test whichever suits the scenario best. I'm using webdriverio for UI and jest-cucumber for integration.

With this error, I'm unable to run my jest-cucumber tests without running into step definition problems. Webdriverio supports this on the other hand.

@bencompton bencompton added the bug Something isn't working label Oct 5, 2020
@bencompton
Copy link
Owner

I actually use it this way in my own project. I have Jest Cucumber tests running only scenarios tagged as @ui, and SpecFlow running scenarios with C# step definitions tagged with @api. This works as expected for me in my project using the latest version of this package. This issue is over a month old, so perhaps you got it working by now, or moved onto something else, but it would help if you could post steps to reproduce if you're still having problems.

This is what my global Jest Cucumber configuration looks like:

const setJestCucumberConfiguration = require('jest-cucumber').setJestCucumberConfiguration;

setJestCucumberConfiguration({
    tagFilter: '@ui'
});

@angeloderivco
Copy link

angeloderivco commented Dec 22, 2020

This functionality works if you have a steps file for the feature but not when you use it with autoBindSteps.

I'll put in some code to replicate this when i get the time but hopefully this would suffice for you.

@bencompton bencompton changed the title Tag filtering happens after steps validation AutoBindSteps - Tag filtering happens after steps validation Apr 10, 2021
@bencompton bencompton added this to the autoBindSteps Gaps milestone Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants