title: How can I get Cypress to run a specific folder of tests by specifying it as a project?
body: <p>I have the following directory structure for working with Cypress:</p>
  
  <pre><code>cypress-automation
      cypress
          fixtures
          integration
             apps
                pulse
                smhw-prod
                smhw-qa
                    folder-a
                         sample-spec.js
          examples
          plugins
          screenshots
          support
          videos
          node_modules
          cypress.json // this is where the file currently is
          package-lock.json
          package.json
  </code></pre>
  
  <p><strong>Expectation</strong></p>
  
  <p>What I want to do is run all the tests inside the <code>smhw-qa</code> folder (there are a number of spec files in there) .. and be able to pass this using the <code>--project</code> command using CLI.</p>
  
  <p>Currently if I just run `--run`` without any other arguments all the spec files, from all folders will start to run which is not desirable, since there are multiple applications "projects" (smhw-qa, smhw-prod etc) within this structure. This will allow me to only run the spec files from a single folder as desired.</p>
  
  <p>I am also aware of using the <code>--run</code> command to "run" a specific folder, but I want to use "projects" instead to organise these tests so it's easier to identify them later. </p>
  
  <p>I have had a look at the docs which show the use of the <code>--project</code> command however I need to help to understand what else I need to setup in order to make this work. By this, I am referring to the <code>package.json</code> file.</p>
  
  <p><strong>What I tried so far</strong><br>
  I tried to follow the example provided for testing "nested folders" from here:
  <a href="https://github.com/cypress-io/cypress-test-nested-projects" rel="noreferrer">https://github.com/cypress-io/cypress-test-nested-projects</a> </p>
  
  <p><code>package.json</code>: added the following script:</p>
  
  <pre><code>  "scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
      "smhw-qa": "cypress run --project ./cypress/integration/apps/smhw-qa"
    },
  </code></pre>
  
  <p>When I run this via the terminal like so:</p>
  
  <pre><code>➜  cypress-automation npx cypress run --project ./cypress/integration/apps/smhw-qa
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>Can't run because no spec files were found.
  
  We searched for any files inside of this folder:
  
  /Users/jaswindersingh/Documents/cypress-automation/cypress/integration/apps/smhw-qa/cypress/integration
  </code></pre>
  
  <p>Am I missing something? Should my <code>cypress.json</code> file be located elsewhere?</p>
  
  <p>I'd like to be able to set each of the folders inside "apps" to be projects, and then be able to run these projects using the <code>cypress run --project</code> command. </p>
  
  <p>This will also make it easier to run specific folders of tests when I hookup our CI so that only specific projects (and their spec files) run when I choose.</p>