【问题标题】:How do we set up parallel running of tests using jenkins and nodejs?我们如何使用 jenkins 和 nodejs 设置并行运行测试?
【发布时间】:2016-01-19 11:51:39
【问题描述】:

我有一个 nodejs 应用程序。如何设置 jenkins 以便它并行运行我的测试?我正在使用 grunt test (grunt) 来运行我的测试。我正在使用 mocha、chai 和 sinon

【问题讨论】:

  • 哪个测试框架?茉莉花?!

标签: node.js express jenkins


【解决方案1】:

不知道你有没有得到答案,如果没有请检查一下。

Jenkins CI integrate with NodeJS and Github problems in configuring build

我最近在那里发布了我使用 nodejs 设置的 jenkins 以及使用 Jasmine-node 和 Frisby 运行的并行测试

您需要添加 grunt 任务以将测试规范文件夹和文件添加到构建中。 并在项目配置页面将测试命令配置到 SSH Publisher 执行命令。

    cd projectname 
    rm -rf public server package.json
    tar -xvf projectname.tgz 
    ls
    npm install --production
    export NODE_ENV=production 
    forever restartall
    jasmine-node spec/api/frisbyapi_spec.js 
    jasmine-node spec/maintest.js
    rm -rf projectname.tgz 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-06-24
    • 1970-01-01
    • 2018-04-28
    • 2015-06-15
    • 2019-11-26
    • 1970-01-01
    • 1970-01-01
    • 2017-01-04
    相关资源
    最近更新 更多