Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code Coverage] Node Tests - Generate reports for live tests #12968

Merged
36 commits merged into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9bd140a
Update .nycrc for blob package to fix the report
HarshaNalluru Dec 15, 2020
43dcb41
update nycrc file for search documents
KarishmaGhiya Dec 17, 2020
ed7edfc
update nycrc file for template
KarishmaGhiya Dec 17, 2020
74a2d14
enable code coverage data tables
KarishmaGhiya Dec 17, 2020
ed30883
tables code coverage
KarishmaGhiya Dec 18, 2020
7aead29
update code coverage
KarishmaGhiya Dec 18, 2020
8443f3d
enable cc for text analytics
KarishmaGhiya Dec 18, 2020
a7d7f4a
update keyvault test paths
KarishmaGhiya Dec 18, 2020
46853a5
update keyvault test paths
KarishmaGhiya Dec 18, 2020
686079f
eventgrid nycrc update
KarishmaGhiya Dec 18, 2020
ef8be06
added nycrc config files
KarishmaGhiya Dec 18, 2020
d6c3efd
formatting
KarishmaGhiya Dec 18, 2020
f2032c0
enable CC for storage file datalake
KarishmaGhiya Dec 18, 2020
a9aec8d
keyvault-keys package.json
KarishmaGhiya Dec 18, 2020
d5d3b2f
CC for keyault-keys
KarishmaGhiya Dec 18, 2020
da6660f
Update sdk/template/template/.nycrc
KarishmaGhiya Dec 18, 2020
d0ab0cb
remove integration-test command from unit-test script
KarishmaGhiya Dec 18, 2020
9c5ae79
cc for keyvault keys
KarishmaGhiya Dec 18, 2020
f1bdc52
CC for all keyvault
KarishmaGhiya Dec 18, 2020
7b0aee8
formatiing
KarishmaGhiya Dec 18, 2020
726ba45
path for tables
KarishmaGhiya Dec 18, 2020
60c00c8
fix keyvault-keys CC
KarishmaGhiya Dec 18, 2020
966242d
undo changes to data-tables from this PR
KarishmaGhiya Dec 18, 2020
e5ce2bf
formatting .nycrc
HarshaNalluru Dec 22, 2020
2ceab61
Rename .nycrc.json to .nycrc
HarshaNalluru Dec 22, 2020
70dbf7a
Rename .nycrc.json to .nycrc
HarshaNalluru Dec 22, 2020
7e1e0f1
Rename .nycrc.json to .nycrc
HarshaNalluru Dec 22, 2020
bab4567
nycrc.json -> nycrc
HarshaNalluru Dec 22, 2020
63dc9ee
Merge branch 'code-coverage' of https://github.com/KarishmaGhiya/azur…
HarshaNalluru Dec 22, 2020
cc62b66
Merge branch 'code-coverage' of https://github.com/KarishmaGhiya/azur…
HarshaNalluru Dec 22, 2020
798d341
Rename .nycrc.json to .nycrc
HarshaNalluru Dec 22, 2020
01917be
Merge branch 'code-coverage' of https://github.com/KarishmaGhiya/azur…
HarshaNalluru Dec 22, 2020
29cf566
revert keyvault-certificates file path specification
HarshaNalluru Dec 22, 2020
a540ffa
simplify integration-test commands
HarshaNalluru Dec 22, 2020
fb59afa
Merge branch 'harshan/code-coverage-blob-fix' into code-coverage
HarshaNalluru Dec 22, 2020
7abd213
.nycrc
HarshaNalluru Dec 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sdk/appconfiguration/app-configuration/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": ["dist-esm/src/**/*.js"],
"exclude": ["**/*.d.ts", "dist-esm/src/generated/*"],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
"instrument": true,
"all": true
}
10 changes: 10 additions & 0 deletions sdk/communication/communication-administration/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": ["dist-esm/src/**/*.js"],
"exclude": ["**/*.d.ts", "dist-esm/src/generated/*"],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
"instrument": true,
"all": true
}
10 changes: 10 additions & 0 deletions sdk/communication/communication-chat/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": ["dist-esm/src/**/*.js"],
"exclude": ["**/*.d.ts", "dist-esm/src/generated/*"],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
"instrument": true,
"all": true
}
10 changes: 10 additions & 0 deletions sdk/communication/communication-common/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": ["dist-esm/src/**/*.js"],
"exclude": ["**/*.d.ts", "dist-esm/src/generated/*"],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
"instrument": true,
"all": true
}
10 changes: 10 additions & 0 deletions sdk/communication/communication-sms/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"include": ["dist-esm/src/**/*.js"],
"exclude": ["**/*.d.ts", "dist-esm/src/generated/*"],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
"instrument": true,
"all": true
}
5 changes: 5 additions & 0 deletions sdk/eventgrid/eventgrid/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"**/*.d.ts",
"dist-esm/src/generated/*"
],
"reporter": [
"text-summary",
"html",
"cobertura"
],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
Expand Down
9 changes: 9 additions & 0 deletions sdk/keyvault/keyvault-admin/.nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"include": ["dist-esm/keyvault-admin/src/**/*.js"],
"exclude": ["**/*.d.ts"],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"instrument": true,
"all": true
}
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace dist-esm/**/*.spec.js",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace dist-esm/**/*.spec.js",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace \"dist-esm/keyvault-admin/test/internal/**/*.spec.js\" \"dist-esm/keyvault-admin/test/public/**/*.spec.js\"",
HarshaNalluru marked this conversation as resolved.
Show resolved Hide resolved
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace \"dist-esm/keyvault-admin/test/internal/**/*.spec.js\" \"dist-esm/keyvault-admin/test/public/**/*.spec.js\"",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json src --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json api-extractor.json src --ext .ts",
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-certificates/.nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": [
"dist-esm/src/**/*.js"
"dist-esm/keyvault-certificates/src/**/*.js"
],
"exclude": [
"**/*.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-certificates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 250000 --full-trace dist-esm/**/*.spec.js",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace dist-esm/**/*.spec.js",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 250000 --full-trace \"dist-esm/keyvault-certificates/test/internal/**/*.spec.js\" \"dist-esm/keyvault-certificates/test/public/**/*.spec.js\"",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace \"dist-esm/keyvault-certificates/test/internal/**/*.spec.js\" \"dist-esm/keyvault-certificates/test/public/**/*.spec.js\"",
HarshaNalluru marked this conversation as resolved.
Show resolved Hide resolved
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json api-extractor.json src test --ext .ts",
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-keys/.nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": [
"dist-esm/src/**/*.js"
"dist-esm/keyvault-keys/src/**/*.js"
],
"exclude": [
"**/*.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace dist-esm/**/*.spec.js",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace dist-esm/**/*.spec.js",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace \"dist-esm/keyvault-keys/test/internal/*.spec.js\" \"dist-esm/keyvault-keys/test/public/*.spec.js\"",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace \"dist-esm/keyvault-keys/test/internal/*.spec.js\" \"dist-esm/keyvault-keys/test/public/*.spec.js\"",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json api-extractor.json src test --ext .ts",
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-secrets/.nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"include": [
"dist-esm/src/**/*.js"
"dist-esm/keyvault-secrets/src/**/*.js"
],
"exclude": [
"**/*.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-secrets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace dist-esm/**/*.spec.js",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace dist-esm/**/*.spec.js",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace \"dist-esm/keyvault-secrets/test/internal/**/*.spec.js\" \"dist-esm/keyvault-secrets/test/public/**/*.spec.js\"",
"integration-test:node:no-timeout": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --no-timeouts --full-trace \"dist-esm/keyvault-secrets/test/internal/**/*.spec.js\" \"dist-esm/keyvault-secrets/test/public/**/*.spec.js\"",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json api-extractor.json src test --ext .ts",
Expand Down
5 changes: 5 additions & 0 deletions sdk/search/search-documents/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"**/*.d.ts",
"dist-esm/src/generated/*"
],
"reporter": [
"text-summary",
"html",
"cobertura"
],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-test/index.node.js --harmony",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace dist-esm/test/internal/*.spec.js dist-esm/test/public/*.spec.js dist-esm/test/public/node/*.spec.js dist-esm/test/internal/node/*.spec.js --harmony",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json api-extractor.json src test --ext .ts -f html -o search-lintReport.html || exit 0",
Expand Down
18 changes: 9 additions & 9 deletions sdk/storage/storage-file-datalake/.nycrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"include": [
"dist-esm/src/**/*.js"
"dist-esm/**/src/**/*.js"
],
"exclude": [
"**/*.d.ts",
"dist-esm/src/StorageBrowserPolicyFactory.js",
"dist-esm/src/policies/StorageBrowserPolicy.js",
"dist-esm/src/credentials/StorageSharedKeyCredential.browser.js",
"dist-esm/src/models.js",
"dist-esm/src/index.browser.js",
"dist-esm/src/utils/utils.browser.js",
"dist-esm/src/generated/src/storageClient.js"
"dist-esm/storage-file-datalake/src/StorageBrowserPolicyFactory.js",
"dist-esm/storage-file-datalake/src/policies/StorageBrowserPolicy.js",
"dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.browser.js",
"dist-esm/storage-file-datalake/src/models.js",
"dist-esm/storage-file-datalake/src/index.browser.js",
"dist-esm/storage-file-datalake/src/utils/utils.browser.js",
"dist-esm/storage-file-datalake/src/generated/src/storageClient.js"
],
"reporter": [
"text-summary",
Expand All @@ -21,4 +21,4 @@
"sourceMap": true,
"instrument": true,
"all": true
}
}
5 changes: 5 additions & 0 deletions sdk/template/template/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"**/*.d.ts",
"dist-esm/src/generated/*"
],
"reporter": [
"text-summary",
"html",
"cobertura"
],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
Expand Down
1 change: 1 addition & 0 deletions sdk/textanalytics/ai-text-analytics/.nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"**/*.d.ts",
"dist-esm/src/generated/*"
],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
"produce-source-map": true,
Expand Down