Unstable tests (#7487)

Setup unstable tests
This commit is contained in:
Amir Omidi
2019-10-02 22:01:17 -07:00
committed by GitHub
parent 575d1c8543
commit 6582debd73
10 changed files with 55 additions and 12 deletions

View File

@@ -66,7 +66,7 @@ if (context.RunTest) {
// Tracking bug https://github.com/microsoft/azuredatastudio/issues/7323
const bacpac1: string = path.join(__dirname, '..', 'testData', 'Database1.bacpac');
test.skip('Import and export bacpac', async function () {
test('Import and export bacpac @UNSTABLE@', async function () {
const server = await getStandaloneServer();
await utils.connectToServer(server);

View File

@@ -27,26 +27,26 @@ if (suite === SuiteType.Stress) {
// both are set.
if (process.env.StressRuntime) {
options.timeout = (120 + 1.2 * parseInt(process.env.StressRuntime)) * 1000; // allow sufficient timeout based on StressRuntime setting
console.log(`setting options.timeout to:${options.timeout} based on process.env.StressRuntime value of ${process.env.StressRuntime} seconds`);
console.log(`setting options.timeout to: ${options.timeout} based on process.env.StressRuntime value of ${process.env.StressRuntime} seconds`);
}
}
// set relevant mocha options from the environment
if (process.env.ADS_TEST_GREP) {
options.grep = process.env.ADS_TEST_GREP;
console.log(`setting options.grep to:${options.grep}`);
console.log(`setting options.grep to: ${options.grep}`);
}
if (process.env.ADS_TEST_INVERT_GREP) {
options.invert = parseInt(process.env.ADS_TEST_INVERT_GREP);
console.log(`setting options.invert to:${options.invert}`);
console.log(`setting options.invert to: ${options.invert}`);
}
if (process.env.ADS_TEST_TIMEOUT) {
options.timeout = parseInt(process.env.ADS_TEST_TIMEOUT);
console.log(`setting options.timeout to:${options.timeout}`);
console.log(`setting options.timeout to: ${options.timeout}`);
}
if (process.env.ADS_TEST_RETRIES) {
options.retries = parseInt(process.env.ADS_TEST_RETRIES);
console.log(`setting options.retries to:${options.retries}`);
console.log(`setting options.retries to: ${options.retries}`);
}
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {

View File

@@ -30,12 +30,12 @@ if (context.RunTest) {
});
// This test needs to be re-enabled once the SqlClient driver has been updated
test.skip('Sql NB test', async function () {
test('Sql NB test @UNSTABLE@', async function () {
await (new NotebookTester()).sqlNbTest(this.test.title);
});
// This test needs to be re-enabled once the SqlClient driver has been updated
test.skip('Sql NB multiple cells test', async function () {
test('Sql NB multiple cells test @UNSTABLE@', async function () {
await (new NotebookTester()).sqlNbMultipleCellsTest(this.test.title);
});
@@ -56,7 +56,7 @@ if (context.RunTest) {
});
// TODO: Need to make this test more reliable.
test.skip('should not be dirty after saving notebook test', async function () {
test('should not be dirty after saving notebook test @UNSTABLE@', async function () {
await (new NotebookTester().shouldNotBeDirtyAfterSavingNotebookTest(this.test.title));
});

View File

@@ -21,7 +21,7 @@ if (context.RunTest) {
test('Standalone instance node label test', async function () {
return await (new ObjectExplorerTester()).standaloneNodeLabelTest();
});
test.skip('Azure SQL DB instance node label test', async function () {
test('Azure SQL DB instance node label test @UNSTABLE@', async function () {
return await (new ObjectExplorerTester()).sqlDbNodeLabelTest();
});
test('BDC instance context menu test', async function () {
@@ -30,7 +30,7 @@ if (context.RunTest) {
test('Azure SQL DB context menu test', async function () {
return await (new ObjectExplorerTester()).sqlDbContextMenuTest();
});
test.skip('Standalone database context menu test', async function () {
test('Standalone database context menu test @UNSTABLE@', async function () {
return await (new ObjectExplorerTester()).standaloneContextMenuTest();
});
});

View File

@@ -46,7 +46,7 @@ if (context.RunTest) {
test('Schema compare dacpac to dacpac comparison and scmp', async function () {
await schemaCompareTester.SchemaCompareDacpacToDacpac();
});
test('Schema compare database to database comparison, script generation, and scmp', async function () {
test('Schema compare database to database comparison, script generation, and scmp @UNSTABLE@', async function () {
await schemaCompareTester.SchemaCompareDatabaseToDatabase();
});
// TODO: figure out why this is failing with Error: This editor is not connected to a database Parameter name: OwnerUri