Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6129388a20 | |||
8f0cfe1a06 | |||
39926fb08b | |||
36594b64f2 |
766
package-lock.json
generated
766
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@gitzone/tstest",
|
||||
"version": "1.0.14",
|
||||
"version": "1.0.16",
|
||||
"private": false,
|
||||
"description": "a test utility to run tests that match test/**/*.ts",
|
||||
"main": "dist/index.js",
|
||||
@ -19,16 +19,16 @@
|
||||
"build": "(tsbuild)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.0.21",
|
||||
"@pushrocks/tapbundle": "^3.0.1"
|
||||
"@gitzone/tsbuild": "^2.1.2",
|
||||
"@pushrocks/tapbundle": "^3.0.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gitzone/tsrun": "^1.1.11",
|
||||
"@gitzone/tsrun": "^1.1.16",
|
||||
"@pushrocks/consolecolor": "^2.0.1",
|
||||
"@pushrocks/smartfile": "^6.0.6",
|
||||
"@pushrocks/smartlog": "^2.0.1",
|
||||
"@pushrocks/smartfile": "^6.0.11",
|
||||
"@pushrocks/smartlog": "^2.0.9",
|
||||
"@pushrocks/smartpromise": "^2.0.5",
|
||||
"@pushrocks/smartshell": "^2.0.6",
|
||||
"@pushrocks/smartshell": "^2.0.11",
|
||||
"@types/figures": "^2.0.0",
|
||||
"figures": "^2.0.0"
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user