title: Angular CLI / Run two categories of test with ng test
body: <p>I have two different types of tests:</p>
  
  <ul>
  <li>Unit tests (standard angular cli <strong>.spec.ts</strong> files)</li>
  <li>Functional tests (my specific <strong>.func.spec.ts</strong> files, works the same way as .spec.ts files, but not mocked and injects data in my db, so no need to run them all the time)</li>
  </ul>
  
  <p>I am trying to :</p>
  
  <ul>
  <li>Exclude the .func.spec.ts files from the <code>ng test</code> command to only run <strong>.spec.ts</strong> test file</li>
  <li>Call the test command to only run <strong>.func.spec.ts</strong></li>
  </ul>
  
  <p>So my functional tests are not executed in the regular <code>ng test</code> context and can be run separately.</p>
  
  <p>In other words the solution can be...</p>
  
  <ul>
  <li><code>npm run test</code> runs .spec.ts files</li>
  <li><code>npm run test:func</code> runs .func.spec.ts files</li>
  </ul>
  
  <p>I tried to create a different karma config file that excludes the files I don't want but it does not work.</p>
  
  <p>Do you have any idea of how to perform this?</p>