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
Running with CYPRESS_INCLUDE_TAGS, any test that includes a it.skip() but not the included tag has it's relevant before() hook run, before quitting and showing as Pending in results output
CYPRESS_INCLUDE_TAGS=@smoke ./node_modules/.bin/cypress run --browser chrome --spec cypress/integration/test_*.spec.js
runs 3 files: test_nonskip.spec.js, test_skip.spec.js, test_smoke.spec.js. These are essentially the same code as above where nonskip = it(), skip = it.skip(), smoke = it(['@smoke'])
This outputs:
I would expect test_skip to behave the same as test_nonskip
The text was updated successfully, but these errors were encountered:
This is an interesting issue as it highlights the difference between how this library and Cypress treat skipped tests.
If you see this issue: cypress-io/cypress#3092, then you see that it is a Cypress feature (or bug depending who you ask) to mark skipped tests as pending. There is some debate on that ticket as to whether this is just a terminology issue or whether a change should be made to not show skipped tests as pending.
I have a fix in v0.0.21 that will ensure that .skip tests are ignored using their tags (or lack thereof) to be consistent with how this library skips other untagged tests.
Would you be able to try out the new version and let me know if that works for you?
Running with CYPRESS_INCLUDE_TAGS, any test that includes a it.skip() but not the included tag has it's relevant before() hook run, before quitting and showing as Pending in results output
Running the following:
CYPRESS_INCLUDE_TAGS=@smoke ./node_modules/.bin/cypress run --browser chrome --spec cypress/integration/test_*.spec.js
runs 3 files: test_nonskip.spec.js, test_skip.spec.js, test_smoke.spec.js. These are essentially the same code as above where nonskip =
it()
, skip =it.skip()
, smoke =it(['@smoke'])
This outputs:
I would expect test_skip to behave the same as test_nonskip
The text was updated successfully, but these errors were encountered: