持续集成:使用Gulp + Codeship进行测试(gulp-jasmine)

时间:2015-05-07 16:36:21

标签: gulp codeship

当我运行我的后端测试时,代码提到没有返回任何内容:

13 specs, 0 failures
Finished in 0 seconds
[16:31:49] Finished 'testBECodeship' after 5.34 s

This command didn't output anything for for a while, thus we stopped it. If the error is on our end please inform us so we can help you to fix this.

Gulp Code:

gulp.task('testBECodeship', function () {

  return gulp.src(paths.specs + '/backend/**/*.spec.js')
    .pipe($.jasmine({verbose: true}));
});

我也可以使用茉莉花,但我也有使用gulp运行的前端测试,这需要更多配置。在我的开发中也一样好。系统与CI系统一样。

1 个答案:

答案 0 :(得分:0)

Ahoy Andi,来自Codeship工作人员的Marko。我们已经看到了通过Gulp运行jasmine的一些问题,因为它似乎会等待文件的更改而不是干净地退出。直接运行jasmine没有Gulp会工作!