currents-dev / cypress-cloud

Debug, troubleshoot and record Cypress CI tests in Cloud
https://currents.dev
Other
47 stars 16 forks source link

Glob patterns not working for --spec parameter #150

Closed Moke96 closed 1 year ago

Moke96 commented 1 year ago

Before opening, please confirm:

Environment information

n/a

Describe the bug

Cypress-Cloud: yarn cypress-cloud run --project ./cypress/cypress_e2e --browser chrome --spec "./cypress/cypress_e2e/cypress/e2e/Specs/!(test1.spec.ts|test2.spec.ts)"

WARNING Found no spec files. Was looking for spec files that match both configSpecPattern and specPattern relative to projectRoot. Configuration: { projectRoot: 'myProjectPath\\frontend\\cypress\\cypress_e2e', specPattern: [ './cypress/cypress_e2e/cypress/e2e/Specs/!(test1.spec.ts|test2.spec.ts)' ], configSpecPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', excludeSpecPattern: [ '*.hot-update.js' ], testingType: 'e2e' }

Plain Cypress: yarn cypress run --project ./cypress/cypress_e2e --browser chrome --spec "./cypress/cypress_e2e/cypress/e2e/Specs/!(test1.spec.ts|test2.spec.ts)"

` (Run Starting)

┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 12.13.0 │ │ Browser: Chrome 114 (headless) │ │ Node Version: v16.15.0 (C:\Program Files\nodejs\node.exe) │ │ Specs: 17 found (test3.spec.ts,test4.spec.ts, ...) │ │ Searched: myProjectPath\frontend\cypress\cypress_e2e\cypress\e2e\Sp │ │ ecs!(test1.spec.ts|test2.spec.ts) │ └────────────────────────────────────────────────────────────────────────────────────────────────┘`

Maybe related to https://github.com/currents-dev/cypress-cloud/issues/118

Expected behavior

Glob patterns work with cypress cloud

Command and Setup

yarn cypress-cloud run --project ./cypress/cypress_e2e --browser chrome --spec "./cypress/cypress_e2e/cypress/e2e/Specs/!(test1.spec.ts|test2.spec.ts)"

Full log and debug output

``` // Put your logs below this line ```
agoldis commented 1 year ago

@Moke96 you missed the full log and debug output