Fix pipelines test script
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
displayName: 'Install dependencies and build'
|
displayName: 'Install dependencies and build'
|
||||||
- script: |
|
- script: |
|
||||||
yarn mocha
|
yarn test-unit
|
||||||
displayName: 'Unit tests'
|
displayName: 'Unit tests'
|
||||||
- script: |
|
- script: |
|
||||||
yarn lint
|
yarn lint
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
displayName: 'Install dependencies and build'
|
displayName: 'Install dependencies and build'
|
||||||
- script: |
|
- script: |
|
||||||
yarn mocha
|
yarn test-unit
|
||||||
displayName: 'Unit tests'
|
displayName: 'Unit tests'
|
||||||
- script: |
|
- script: |
|
||||||
yarn lint
|
yarn lint
|
||||||
@@ -56,7 +56,7 @@ jobs:
|
|||||||
yarn
|
yarn
|
||||||
displayName: 'Install dependencies and build'
|
displayName: 'Install dependencies and build'
|
||||||
- script: |
|
- script: |
|
||||||
yarn mocha
|
yarn test-unit
|
||||||
displayName: 'Unit tests'
|
displayName: 'Unit tests'
|
||||||
- script: |
|
- script: |
|
||||||
yarn lint
|
yarn lint
|
||||||
|
|||||||
+1
-2
@@ -10,14 +10,13 @@ const path = require('path');
|
|||||||
const env = { ...process.env };
|
const env = { ...process.env };
|
||||||
env.NODE_PATH = path.resolve(__dirname, '../out');
|
env.NODE_PATH = path.resolve(__dirname, '../out');
|
||||||
|
|
||||||
const testPaths = [
|
const args = [
|
||||||
'./out/*test.js',
|
'./out/*test.js',
|
||||||
'./out/**/*test.js',
|
'./out/**/*test.js',
|
||||||
'./out/*integration.js',
|
'./out/*integration.js',
|
||||||
'./out/**/*integration.js',
|
'./out/**/*integration.js',
|
||||||
'./lib/**/*test.js'
|
'./lib/**/*test.js'
|
||||||
];
|
];
|
||||||
const args = testPaths.map(p => `'${p}'`);
|
|
||||||
|
|
||||||
cp.spawnSync(path.resolve(__dirname, '../node_modules/.bin/mocha'), args, {
|
cp.spawnSync(path.resolve(__dirname, '../node_modules/.bin/mocha'), args, {
|
||||||
cwd: path.resolve(__dirname, '..'),
|
cwd: path.resolve(__dirname, '..'),
|
||||||
|
|||||||
+2
-1
@@ -41,7 +41,8 @@
|
|||||||
"start-debug": "node --inspect-brk demo/start",
|
"start-debug": "node --inspect-brk demo/start",
|
||||||
"start-zmodem": "node demo/zmodem/app",
|
"start-zmodem": "node demo/zmodem/app",
|
||||||
"lint": "tslint 'src/**/*.ts' './demo/**/*.ts'",
|
"lint": "tslint 'src/**/*.ts' './demo/**/*.ts'",
|
||||||
"test": "node ./bin/test.js",
|
"test-unit": "node ./bin/test.js",
|
||||||
|
"test": "npm run test-unit",
|
||||||
"posttest": "npm run lint",
|
"posttest": "npm run lint",
|
||||||
"test-api": "mocha \"**/*.api.js\"",
|
"test-api": "mocha \"**/*.api.js\"",
|
||||||
"build": "tsc -b ./src/tsconfig.all.json",
|
"build": "tsc -b ./src/tsconfig.all.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user