【发布时间】:2021-06-01 05:21:51
【问题描述】:
我是 Jenkins 的 Supertest 和 Mocha 新手。我正在运行一个测试脚本并在 Jenkins 中构建一个脚本。我的测试成功,但构建挂断了。
supertest npm 的测试脚本:
var request = require('supertest');
var app = require('../index.js');
describe('GET /', function() {
it('Respond with hello world', function(done) {
//navigate to root and check the the response is "hello world"
request(app).get('/').expect({
status : true,
message : 'hello world'
}, done);
});
});
这是 Jenkins 日志的截图:
有人可以帮忙吗?
【问题讨论】:
-
这是更大的 Jenkins 管道的一部分吗?如果是这样,发布整个管道源和/或作业配置的屏幕截图可能会有所帮助。帮助我们看到更大的图景。我不是 Mocha、supertest,甚至不是 NPM 专家,但在 Jenkins 中管道可能相当复杂。
标签: node.js jenkins continuous-integration continuous-deployment supertest