【问题标题】:Runs script repeatedly to api test重复运行脚本以进行 api 测试
【发布时间】:2016-03-16 13:06:05
【问题描述】:

我目前有一个使用 supertest + mocha + grunt 的 api 测试脚本。

我想每 1 分钟运行一次此脚本。怎么可能

【问题讨论】:

    标签: node.js gruntjs supertest


    【解决方案1】:

    你可以使用 linux cron job 或者 node module schedular

    https://github.com/node-schedule/node-schedule
    

    每分钟运行一次您的脚本。

    【讨论】:

    • 但是我怎样才能用 grunt 运行呢?
    猜你喜欢
    • 2021-01-08
    • 2013-02-24
    • 1970-01-01
    • 2021-05-29
    • 2011-11-27
    • 1970-01-01
    • 2018-08-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多