通过gulp任务运行单个wct测试

时间:2016-10-30 11:28:53

标签: javascript gulp web-component-tester

如何创建单个gulp任务来运行单个wct测试?我有以下项目结构:

|-build
|--gulpfile.babel.js
|--wct.conf.js
|-test
|--test-folder1
|----t-test1.html
|----t-test1.js
|--test-folder2
|----t-test2.html
|----t-test2.js

在我的 gulpfile.babel.js 中,我想为t-test1t-test2创建单独的任务。

伪代码:

gulp.task('test1', (done) => { 
    <RUN WCT TEST FROM FOLDER t-folder1>; // Is there a way to trigger single test here???
    done();
});

gulp.task('test2', (done) => { 
    <RUN WCT TEST FROM FOLDER t-folder2>; // Is there a way to trigger single test here???
    done();
});

我找不到任何示例代码。

感谢任何帮助。

0 个答案:

没有答案