forked from microsoft/azuredatastudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration-test code coverage (microsoft#10632)
* wip * Update to latest vscodetestcover and add tests back in * Update to latest version of vscodetestcover * updates * another yarn.lock * update version * Revert import path change
- Loading branch information
1 parent
f2c3320
commit 7305bda
Showing
38 changed files
with
960 additions
and
1,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"enabled": true, | ||
"relativeSourcePath": "../../../", | ||
"relativeCoverageDir": "../../coverage", | ||
"ignorePatterns": [ | ||
"**/coverage/**", | ||
"**/generated/**", | ||
"**/node_modules/**", | ||
"**/test/**" | ||
], | ||
"includePid": false, | ||
"reports": [ | ||
"cobertura", | ||
"lcov" | ||
], | ||
"verbose": false, | ||
"remapOptions": { | ||
"basePath": "../../../", | ||
"useAbsolutePaths": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the Source EULA. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import * as path from 'path'; | ||
import * as testRunner from 'vscodetestcover'; | ||
|
||
const suite = 'Extension Integration Tests'; | ||
|
||
const mochaOptions: any = { | ||
ui: 'tdd', | ||
useColors: true, | ||
timeout: 60000 | ||
}; | ||
|
||
// set relevant mocha options from the environment | ||
if (process.env.ADS_TEST_GREP) { | ||
mochaOptions.grep = process.env.ADS_TEST_GREP; | ||
console.log(`setting options.grep to: ${mochaOptions.grep}`); | ||
} | ||
if (process.env.ADS_TEST_INVERT_GREP) { | ||
mochaOptions.invert = parseInt(process.env.ADS_TEST_INVERT_GREP); | ||
console.log(`setting options.invert to: ${mochaOptions.invert}`); | ||
} | ||
if (process.env.ADS_TEST_TIMEOUT) { | ||
mochaOptions.timeout = parseInt(process.env.ADS_TEST_TIMEOUT); | ||
console.log(`setting options.timeout to: ${mochaOptions.timeout}`); | ||
} | ||
if (process.env.ADS_TEST_RETRIES) { | ||
mochaOptions.retries = parseInt(process.env.ADS_TEST_RETRIES); | ||
console.log(`setting options.retries to: ${mochaOptions.retries}`); | ||
} | ||
|
||
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) { | ||
mochaOptions.reporter = 'mocha-multi-reporters'; | ||
mochaOptions.reporterOptions = { | ||
reporterEnabled: 'spec, mocha-junit-reporter', | ||
mochaJunitReporterReporterOptions: { | ||
testsuitesTitle: `${suite} ${process.platform}`, | ||
mochaFile: path.join(process.env.BUILD_ARTIFACTSTAGINGDIRECTORY, `test-results/${process.platform}-${suite.toLowerCase().replace(/[^\w]/g, '-')}-results.xml`) | ||
} | ||
}; | ||
} | ||
|
||
testRunner.configure(mochaOptions, { coverConfig: '../../coverConfig.json' }); | ||
|
||
export = testRunner; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.