Cypress: --spec doesn't recursively find all matching files in the entire folder hierarchy

Created on 25 Jan 2019  路  2Comments  路  Source: cypress-io/cypress

Current behavior:

I added "integrationFolder": "./app", in cypress.json
and in the app folder i have
app/folder1/test1.spec.js
app/folder1/folder2/test2.spec.js
app/folder1/folder2/folder3/test3.spec.js

when running cypress run --browser chrome --spec ./app/**/*.cyp.js
the resulting run only includes tests from test1.spec.js, and test2 and test3 are ignored.

Desired behavior:

Given that file pattern argument provided for --spec I should be able to run all the specs in every folder and subfolder, in addition to running only the specs directly within folder1.

Steps to reproduce: (app code and test code)

Versions

version 3.1.3

OS is irrelevant as it's reproducible in both linux CI environment and on local Macbook.

Most helpful comment

Oh! IT WORKED. also I found the documentation where it says quotes required. Thanks very much!

All 2 comments

@jennliacl can you try --spec '**/*.cyp.js' with quotes around the argument?

Oh! IT WORKED. also I found the documentation where it says quotes required. Thanks very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tahayk picture tahayk  路  3Comments

dkreft picture dkreft  路  3Comments

igorpavlov picture igorpavlov  路  3Comments

egucciar picture egucciar  路  3Comments

rbung picture rbung  路  3Comments