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

cypress/base:16, cypress 10.3.1: example tests found when running in CI #721

Closed
TommasoAmici opened this issue Aug 2, 2022 · 2 comments
Closed

Comments

@TommasoAmici
Copy link

Hi, I've set up a GitLab CI pipeline using cypress/base:16. When I run locally everything works as expected.

In CI, however, Cypress picks up 20 tests I have not written.

You can see below it finds 22 specs. I have only written app-banner.cy.js, app-cookie-consent.cy.js. Where are these other specs coming from? They're making my pipeline fail.

> cypress run --headless --component --config watchForFileChanges=false
[STARTED] Task without title.
[SUCCESS] Task without title.
[1344:0802/123745.108777:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[1344:0802/123745.114482:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Couldn't find tsconfig.json. tsconfig-paths will be skipped
====================================================================================================
  (Run Starting)
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.3.1                                                                         │
  │ Browser:        Electron 100 (headless)                                                        │
  │ Node Version:   v16.14.2 (/usr/local/bin/node)                                                 │
  │ Specs:          22 found (app-banner.cy.js, app-cookie-consent.cy.js, todo.cy.js, actions.cy.j │
  │                 s, aliasing.cy.js, assertions.cy.js, connectors.cy.js, cookies.cy.js, cypress_ │
  │                 api.cy.js, files.cy.js, local_storage.cy.js, location.cy.js, misc.cy.js, navig │
  │                 ation.cy.js, network_re...)                                                    │
  │ Searched:       **/*.cy.{js,jsx,ts,tsx}                                                        │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
@TommasoAmici
Copy link
Author

Just in case someone else has the same issue, I have added --spec 'cypress/**/*.cy.js' when calling cypress as a workaround

@MikeMcC399
Copy link
Collaborator

@TommasoAmici

The additional tests mentioned come from scaffolded tests. Normally these would only be added optionally.

I'm going to close this issue as it refers to an old version. If are still encountering this issue, please comment and we can re-open.

@MikeMcC399 MikeMcC399 closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
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

2 participants