0

How to exclude certain specs to be run in the folder when npx cypress run is executed for example please see the image

I don't want to execute my spec which is in Marketing/Sales/sc1111.spec.ts but at the same time I want it to execute via the import statement mentioned in Finance/Verify/sc1111-main.spec.ts

is there anything that I can do in the folder level itself to stop it from running asking this as I have 100's of folders that are going to be like this and I don't want to mess up the configuration file with excluding list so Please help me regarding this with your suggestions enter image description here

TesterDick
  • 3,830
  • 5
  • 18
ksk
  • 165
  • 14
  • 1
    You could alter the file names of the other files so runs will not pick them up. Why have you chosen this way to write your tests? – jjhelguero Oct 06 '22 at 17:09
  • @jjhelguero thank you i will try that way the intent was to have the specs in those areas where it belongs as my main spec will run into those areas so i wanted to keep that area related code in that folder and call all of this in one place via main spec – ksk Oct 07 '22 at 11:03
  • That seems like more of an organizing desire than a functional. You might want to check if performance will take a hit with that approach. – jjhelguero Oct 07 '22 at 14:39

0 Answers0