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

While running scenario with specific tag others are marked as pending in results #436

Closed
praveen1000 opened this issue Aug 27, 2020 · 4 comments

Comments

@praveen1000
Copy link

praveen1000 commented Aug 27, 2020

Current behavior

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

Desired behavior

Scenarios that are not executed should not show in the results.

Test code to reproduce

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)
})

Versions

  • Cypress version:5.0.0
  • Preprocessor version: ^2.5.5
  • Node version: v12.16.3
@alexkrolick
Copy link

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).

@badeball
Copy link
Owner

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. cypress-io/cypress#3092 and cypress-io/cypress-documentation#593.

@badeball
Copy link
Owner

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.

@badeball
Copy link
Owner

Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.

Read more about the transfer of ownership here.

The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.

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

No branches or pull requests

3 participants