This feature file has two tests marked with tags @smoke and @Regression. I'm running command npx cypress-tags run -e TAGS='@smoke' to run only scenario marked with tag @smoke. This command runs the desired scenario but marks others as pending. Example of the result shown in the below image
https://ibb.co/CPfqzLv
Scenarios that are not executed should not show in the results.
Google.feature
Feature: The Facebook
I want to open a social network page
@smoke
Scenario: fhgfh a social network page
Given I open Google page
@regression
Scenario: sd a social network page
Given I open Google page
Step definition:
Givens.js
const url = 'https://google.com'
Given('I open Google page', () => {
cy.visit(url)
})
I think they should be marked as "Skipped" instead of "Pending". Otherwise the Cypress test output looks incorrect (as if tests are hanging instead of not running).
I think they should be marked as "Skipped" instead of "Pending". Otherwise the Cypress test output looks incorrect (as if tests are hanging instead of not running).
This isn't something we chose. See eg. https://github.com/cypress-io/cypress/issues/3092 and https://github.com/cypress-io/cypress-documentation/issues/593.
It seems like you have multiple test suites that you commonly run separate from each other, making the "pending output" seem like a polution. I get that, but why do you have separate types of tests gathered in a single test suite? Split them up and use eg. an environment variable to specify testFiles matching only the desired tests.
Most helpful comment
I think they should be marked as "Skipped" instead of "Pending". Otherwise the Cypress test output looks incorrect (as if tests are hanging instead of not running).