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

Issue With Skipping Tests Resurfaced in 13.8.1 #29461

Open
wakeboardfit opened this issue May 2, 2024 · 6 comments
Open

Issue With Skipping Tests Resurfaced in 13.8.1 #29461

wakeboardfit opened this issue May 2, 2024 · 6 comments
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@wakeboardfit
Copy link

Current behavior

We run in an Azure pipeline and after upgrading to 13.8.1, we are experiencing that many tests are just being skipped. This did not happen before and the code did not change outside of a few locator updates and whatnot.
image

When running in 13.6.4, our executions would look like
image

You can see the drop off where we upgraded versions
image

I saw there was an issue that was closed regarding something similar back in version 10.

Desired behavior

Cypress should not just skip tests for not reason.

Test code to reproduce

Everything runs locally so this seems only on Azure. We are running "windows-latest" agent.

Cypress Version

13.8.1

Node version

18.18.2

Operating System

Windows-latest Azure Pipeline

Debug Logs

I will have to get this setup in our pipeline and will add when I can.

Other

No response

@jennifer-shehane
Copy link
Member

@wakeboardfit Are you recording to the Cloud? Could you link to a URL of the run if so?

Could you provide the command you use to run Cypress?

I'm not familiar with anything that would cause this. This is very strange. Can you link to the old issue?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label May 2, 2024
@wakeboardfit
Copy link
Author

wakeboardfit commented May 2, 2024

Old issue: #22276

Command:

npx cypress run --spec cypress/e2e/*/**/*.feature --config video=true,screenshotOnRunFailure=true --env username=$(USERNAME),insurerUser=$(INSUREDNAME),password=$env:MAPPED_PASS,ls_api_username=$(USERNAME),ls_api_password=$env:MAPPED_PASS,tags=@admitted

We are not using the cypress cloud. I am still trying to figure out how to set the Debug flag in Azure pipeline as it says you need to run in command line (not powershell) and I need to see if I can make that run as admin.

@wakeboardfit
Copy link
Author

Unless you guys have another way, I am not seeing a way to run Command Line as and Admin in Azure without self hosted agents. I put the debug command in our Power Shell step but I don't believe it did anything and your documentation pretty specifically says not Power Shell.

@jennifer-shehane
Copy link
Member

@wakeboardfit I do see you are passing a tags flag. What plugin are you using to read in tags and run/not run tests based on that? Is that was would be causing some tests to be skipped? If they don't match the tag?

@wakeboardfit
Copy link
Author

I need to keep digging in to this. The Pending correctly indicates all the tests that are != tag. It gets weird though with the skipping and potentially it's a error that is happening silently. I have yet to be able to trigger it on a local run but also need have more time to experiment and try to see what's going on. I am reverting our pipeline to 12.17.4 for now and will experiment with 13.8.X to see why that is failing and skipping when it didn't in the past.

@wakeboardfit
Copy link
Author

Finally getting a chance to get back to this. I noticed this when examining the latest Skipped test.
image
image
While executing, the "Mocha Tests" will just fire and then all tests after that are Skipped. I'm theorizing it has something to do with a failure although if it were consistent then we would never get executions on a set of tests with 1 or more failures. I am currently attempting to remove any code from the After in the tests just to see if that is potentially causing the tests to consider themselves "Done" in the middle of a run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants