Improved testing experience in Visual Studio Code #3062
garrytrinder
announced in
Announcements
Replies: 1 comment 1 reply
-
That's really awesome, thank you for this improvment! It works well locally (without the RDC), just have to run |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the latest release of CLI for Microsoft 365, we have made an update to enable the use of the Mocha Text Explorer extension in Visual Studio Code, making writing and running tests during development much easier.
Previously, to run a single test suite, you needed to update the
npm test
script inpackage.json
file to reference a specific test file and it was not possible to run a single test easily.This update enables you to perform to following actions without requiring you to make any changes to the codebase.
The easiest way to make use of this update is to use our Remote Development Container, either locally in Visual Studio Code or remotely using GitHub Codespaces, as we have included the required extensions in the build so they will be automatically installed for you.
You can however manually install the Test Explorer UI, Mocha Test Explorer and GitLens extensions in your local Visual Studio Code if you prefer to not use the Remote Development Container.
To get started, execute
npm run watch
and then open the Tests explorer extension to view the Tests.Beta Was this translation helpful? Give feedback.
All reactions