diff --git a/build/repo.targets b/build/repo.targets index dbad646118..597cb3fa0f 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -33,6 +33,7 @@ + diff --git a/clients/ts/FunctionalTests/package.json b/clients/ts/FunctionalTests/package.json index 6ed723020e..37b8ffcb9c 100644 --- a/clients/ts/FunctionalTests/package.json +++ b/clients/ts/FunctionalTests/package.json @@ -21,7 +21,8 @@ "build:tsc": "node ../node_modules/typescript/bin/tsc --project ./tsconfig.json", "build:rollup": "node ../node_modules/rollup/bin/rollup -c", "pretest": "npm run build", - "test": "dotnet build && ts-node --project ./selenium/tsconfig.json ./selenium/run-tests.ts", + "test": "dotnet build && npm run test-only", + "test-only": "ts-node --project ./selenium/tsconfig.json ./selenium/run-tests.ts", "ci-test": "ts-node --project ./selenium/tsconfig.json ./selenium/run-ci-tests.ts" }, "author": "", diff --git a/clients/ts/FunctionalTests/selenium/run-ci-tests.ts b/clients/ts/FunctionalTests/selenium/run-ci-tests.ts index 183c388384..044cf9e2e7 100644 --- a/clients/ts/FunctionalTests/selenium/run-ci-tests.ts +++ b/clients/ts/FunctionalTests/selenium/run-ci-tests.ts @@ -74,15 +74,15 @@ if (!existsSync(chromeBinary)) { console.log(`Using Google Chrome Browser from '${chromeBinary}`); } -// Launch the tests -const args = ["test", "--", "--raw", "--chrome", chromeBinary]; +// Launch the tests (we know the CI already built, so run the 'test-only' script) +const args = ["run", "test-only", "--", "--raw", "--chrome", chromeBinary]; if (configuration) { args.push("--configuration"); args.push(configuration); } -if (verbose) { + args.push("--verbose"); -} + let command = "npm"; @@ -102,4 +102,4 @@ console.log(`running: ${command} ${args.join(" ")}`); const testProcess = spawn(command, args, { cwd: path.resolve(__dirname, "..") }); testProcess.stderr.pipe(process.stderr); testProcess.stdout.pipe(process.stdout); -testProcess.on("close", (code) => process.exit(code)); \ No newline at end of file +testProcess.on("close", (code) => process.exit(code));