You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After this update #1116 unable to separate feature and non-feature files anymore
I am in a middle of migration to cucumber and I have 3 groups for cypress tests
legacy - regular cypress tests. ran with --spec 'cypress/e2e/**/*.{js,jsx,ts,tsx}' flag
smoke - *.feature specs with tags='@smoke'
extended - *.feature specs with tags='not @smoke'
After updating to v19.1.1 extended group also includes all the legacy group tests since it is not .feature. I tried running negative filter and adding --spec 'cypress/e2e/**/*.feature flag but it looks like it is completely ignored
Desired behavior
Be able to run feature specs separately. if needed
I tried running negative filter and adding --spec 'cypress/e2e/**/*.feature flag but it looks like it is completely ignored
Code running in setupNodeEvents (like this plugin) unfortunately doesn't appear to have access to --spec <files> information. I've tried making in inquiry in their discord, but I highly doubt I'll get an answer.
The best alternative I can imagine right now, is to introduce an option (a mode) to control filtering of non-features when using filterSpecs.
Filtering non-Cucumber specs (which doesn't contain tags) is not
straight forward and there's not a single behavior that's more intuitive
than others. Hence a `filterSpecsMixedMode` option.
This fixes#1125 [1], essentially reverts 0b2702b [2] by retaining
original behavior by default, and also relates to #1116 [3].
[1] #1125
[2] 0b2702b
[3] #1116
I've added an option to control this behavior with v19.2.0. By default, non-Cucumber specs are hidden when using tag expressions and filterSpecs: true.
Current behavior
After this update #1116 unable to separate feature and non-feature files anymore
I am in a middle of migration to cucumber and I have 3 groups for cypress tests
--spec 'cypress/e2e/**/*.{js,jsx,ts,tsx}'
flagtags='@smoke'
tags='not @smoke'
After updating to
v19.1.1
extended group also includes all the legacy group tests since it is not .feature. I tried running negative filter and adding--spec 'cypress/e2e/**/*.feature
flag but it looks like it is completely ignoredDesired behavior
Be able to run feature specs separately. if needed
Test code to reproduce
command for extended tests
command for extended tests
Versions
Checklist
cypress-cucumber-preprocessor@4.3.1
(package name has changed and it is no longer the most recent version, see #689).The text was updated successfully, but these errors were encountered: