fix(core): update

This commit is contained in:
2018-12-06 00:38:03 +01:00
parent 39926fb08b
commit 8f0cfe1a06
3 changed files with 672 additions and 115 deletions

View File

@ -35,7 +35,14 @@ export class TsTest {
console.log(`${cs('=> ', 'blue')} Running ${cs(fileName, 'orange')}`);
console.log(cs(`=`.repeat(16), 'cyan'));
const tapParser = new TapParser(fileName);
const execResultStreaming = await smartshellInstance.execStreamingSilent(`tsrun ${fileName}`);
// tsrun options
let tsrunOptions = ''
if(process.argv.includes('--web')) {
tsrunOptions += ' --web'
}
const execResultStreaming = await smartshellInstance.execStreamingSilent(`tsrun ${fileName}${tsrunOptions}`);
await tapParser.handleTapProcess(execResultStreaming.childProcess);
console.log(cs(`^`.repeat(16), 'cyan'));
console.log(''); // force new line