0

I am new to Cypress and trying to find the best practices for where to store our tests. I see there seems to be plenty of resources for how to organize folders to setup fixtures, tests, plugins, etc. but I can't seem to find any recommendations if people actually store the tests with the front-end code that's being tested or in it's own separate repo?

Are there any advantages of one or the other when trying to setup CICD?

1

There are no best practices, only good practices in context. With the scripts configured correctly, nothing more than a make test is necessary.

E.g., If you have a Jenkins job to run your automated checks:

test:
    curl -X POST http://jenkins_server.com:port/job/job-name/build

If you have to fetch code from other sources, you can run a git clone or a wget.

In the end, after the abstractions are in place, the details barely matter.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.