如何创建单个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-test1
和t-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();
});
我找不到任何示例代码。
感谢任何帮助。