# cypress-test-nested-projects **Repository Path**: mirrors_cypress-io/cypress-test-nested-projects ## Basic Information - **Project Name**: cypress-test-nested-projects - **Description**: [ARCHIVED] Tests Cypress running tests in subfolders - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cypress-test-nested-projects [![CircleCI](https://circleci.com/gh/cypress-io/cypress-test-nested-projects.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-test-nested-projects) Folder structure: ``` package.json node_modules src/ clients/ foo/ cypress.json cypress/ bar/ cypress.json cypress-smoke.json cypress/ integration/ smoke/ ``` Package scripts test subfolders (using relative and absolute paths), see [package.json](package.json) ```json { "scripts": { "test": "npm run test-foo && npm run test-bar", "test-foo": "cypress run --project ./src/clients/foo", "test-bar": "cypress run --project $PWD/src/clients/bar" } } ``` ## Examples: If you want to run Cypress tests in the folder "src/clients/foo": ```shell npx cypress run --project ./src/clients/foo ``` If you want to run Cypress in the folder "src/clients/bar" and use [cypress-smoke.json](src/clients/bar/cypress-smoke.json) configuration file: ```shell npx cypress run --project ./src/clients/bar --config-file cypress-smoke.json ``` ## FAQ
What's the difference between cypress run --project "folder" and cypress run --config-file "filepath"?

When you use cypress run --project ... you change the root folder where Cypress starts.

When you use --config-file ... you still run Cypress in the current folder, but instead of loading the settings from cypress.json file, you load it from a different JSON file.