简体   繁体   中英

Cypress Testing framework

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?

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.

See : 日程

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM