From 6365bf515d31d9ad07255096e4e13de2846264da Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Tue, 9 Jun 2020 15:40:33 -0700 Subject: [PATCH] Update readme for code coverage for integration tests (#10832) --- extensions/integration-tests/readme.md | 6 ++++++ test/README.md | 2 ++ 2 files changed, 8 insertions(+) diff --git a/extensions/integration-tests/readme.md b/extensions/integration-tests/readme.md index 0ce3bdd4e6..efd7339c50 100644 --- a/extensions/integration-tests/readme.md +++ b/extensions/integration-tests/readme.md @@ -35,3 +35,9 @@ The integration test suite has been added to ADS windows pipeline to run the tes 1. Run the script to start the tests 1. Wait for the Window to reload (it does this after installing and activating the extensions) 1. Run the debug target - it should now attach to the Extension Host process and hit breakpoints set in the integration tests + +## Code Coverage + +Code coverage for these tests is enabled by default. After running the tests you can find the results in the `coverage` folder at the root of this extension. + +This code coverage covers extension code only - it will not instrument code from the core. diff --git a/test/README.md b/test/README.md index de15fa7556..6dfaf790bc 100644 --- a/test/README.md +++ b/test/README.md @@ -25,6 +25,8 @@ Code coverage is enabled by default. Reports can be found in the coverage folder These are the group of tests that have dependencies on outside resources such as SQL instances. See the [README](../extensions/integration-tests/readme.md) for more information. +Code coverage for this is also enabled by default (confined to the extensions), follow the instructions for running the tests in the above readme. + ## 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.