Reputation: 1
I am new to testing within cypress and I am trying to test the code by automatic scheduler.
Is it possible to run an automatic scheduler process in the cypress testing framework?
Upvotes: 0
Views: 360
Reputation: 855
If you use Bitbucket you can put them in the pipelines. For the configuration here is the documentation
For example if you want to launch your tests directly during a merge you can do this:
pipelines:
branches:
develop: //your branche
- step:
name: Automatic test
script:
- npm ci
- npm run cypress:run
Or with a custom pipeline that you run manually :
pipelines:
custom:
- step:
name: Automatic test
script:
- npm ci
- npm run cypress:run
And execute pipeline custom with button :
Finally you can also run automatic pipelines on certain days at such times etc.
If to use github or another, you have several possibilities including this one see here You will be able to look at the documentation to help you understand how to configure your pipelines.
Upvotes: 1