Don't run gulp for integration tests
We previously attempted to speed up no-workspace tests [1] but realised we still needed to run some setup steps to get the latest files [2]. Given that we already have `npm run watch` running in the background when we run our tests, we should be able to regenerate files on the fly. This means we can drop `gulp` from our setup steps when running integration tests. While there's still a danger that you forget to run `npm run watch` in the background, we think the massive speed up (10s -> 1s) is worth it as we add more and more tests to this extension. [1]: https://github.com/github/vscode-codeql/pull/1694 [2]: https://github.com/github/vscode-codeql/pull/1696
This commit is contained in:
@@ -1256,7 +1256,7 @@
|
||||
"test": "npm-run-all -p test:*",
|
||||
"test:unit": "mocha --config .mocharc.json test/pure-tests/**/*.ts",
|
||||
"test:view": "jest",
|
||||
"integration-setup": "rm -rf ./out/vscode-tests && gulp",
|
||||
"integration-setup": "rm -rf ./out/vscode-tests",
|
||||
"integration": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js no-workspace,minimal-workspace",
|
||||
"integration:no-workspace": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js no-workspace",
|
||||
"integration:minimal-workspace": "npm run integration-setup && node ./out/vscode-tests/run-integration-tests.js minimal-workspace",
|
||||
|
||||
Reference in New Issue
Block a user