From 1c4269b2ac8d9415c5d0d1c241a41e2dbb2b62a7 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Wed, 6 Jul 2022 09:34:30 -0700 Subject: [PATCH] Add doc section for azdata-test (#19926) --- test/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/README.md b/test/README.md index eff742f98f..0c8b59f686 100644 --- a/test/README.md +++ b/test/README.md @@ -63,6 +63,10 @@ The same principle can be applied to the vscode/azdata APIs. The object in this **IMPORTANT** When using Sinon make sure to call `sinon.restore()` after every test run (using `afterEach` typically) to ensure that the stub doesn't affect other tests. +### azdata-test package + +The [@microsoft/azdata-test](https://www.npmjs.com/package/@microsoft/azdata-test) package contains a number of things that may be helpful to extension tests. These include stubs, mocks and general helper functions that many extensions may need to use - such as common patterns for mocking out parts of the extension API. + ## Code Coverage To generate a report combining the code coverage for extensions + core run `node ./test/combineCoverage`. Currently this will combine coverage from the Core Unit Tests, Extension Unit Tests and Extension Integration tests - see above docs for instructions on how to run those to generate coverage.