[Improvement] optimize area performance (#457)

This commit is contained in:
neverland
2017-12-20 17:39:51 +08:00
committed by GitHub
parent df67b005ce
commit 021d30efb1
6 changed files with 98 additions and 122 deletions

View File

@@ -13,7 +13,9 @@ inquirer.prompt([{
name: 'select',
message: '请选择要运行的测试文件:',
choices: files
}], (result) => {
}]).then(result => {
const file = result.select.replace('.spec.js', '');
shell.exec('karma start test/unit/karma.conf.js --color alway --file ' + file);
}).catch(error => {
console.log(error);
});