-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I am trying to understand how to perform extension testing using the steps here
I've created an extension example using: "yo code"
I chose esbuild as the bundler and npm as the package manager when prompted.
This results in an extension that includes a test file called extension.test.ts
I've noticed the following:
-
After opening the workspace, I can execute: "npm run test" from the terminal pane to run the tests
The test runs, but after it completes the Test Pane is empty and there are no gutter decorations in the extension.test.ts file. If I restart VS Code, the Test Pane shows the tests. Also if I execute "npm run test" from the terminal before starting VS Code the first time, the Test Pane is populated. is this expected? -
As I edit the test file, the Test Pane does not update to reflect new tests, or name changes of existing tests. I've found that if I execute: "tsc -p . -w --outDir out" in the terminal, the Test Pane updates for the rest of that session. Is there a way to start the "watch-tests" script each time the workspace is opened?