提交 30bba102 编写于 作者: B Benjamin Pasero

smoke - only start automatically after data migration tests

上级 a716714a
...@@ -8,7 +8,7 @@ import { join } from 'path'; ...@@ -8,7 +8,7 @@ import { join } from 'path';
export function setup(stableCodePath: string, testDataPath: string) { export function setup(stableCodePath: string, testDataPath: string) {
describe('Data Migration: This test MUST run before releasing by providing the --stable-build command line argument', () => { describe('Datamigration', () => {
it(`verifies opened editors are restored`, async function () { it(`verifies opened editors are restored`, async function () {
if (!stableCodePath) { if (!stableCodePath) {
this.skip(); this.skip();
......
...@@ -266,16 +266,6 @@ after(async function () { ...@@ -266,16 +266,6 @@ after(async function () {
}); });
describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => { describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {
before(async function () {
const app = new Application(this.defaultOptions);
await app!.start(opts.web ? false : undefined);
this.app = app;
});
after(async function () {
await this.app.stop();
});
if (screenshotsPath) { if (screenshotsPath) {
afterEach(async function () { afterEach(async function () {
if (this.currentTest.state !== 'failed') { if (this.currentTest.state !== 'failed') {
...@@ -296,15 +286,34 @@ describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => { ...@@ -296,15 +286,34 @@ describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {
app.logger.log('*** Test start:', title); app.logger.log('*** Test start:', title);
}); });
} }
if (!opts.web) { setupDataMigrationTests(opts['stable-build'], testDataPath); }
if (!opts.web) { setupDataLossTests(); } if (!opts.web) {
if (!opts.web) { setupDataPreferencesTests(); } describe(`Data Migration: This test MUST run before releasing by providing the --stable-build command line argument`, () => {
setupDataSearchTests(); setupDataMigrationTests(opts['stable-build'], testDataPath);
setupDataLanguagesTests(); });
setupDataEditorTests(); }
setupDataStatusbarTests(!!opts.web);
if (!opts.web) { setupDataExtensionTests(); } describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {
if (!opts.web) { setupDataMultirootTests(); } before(async function () {
if (!opts.web) { setupDataLocalizationTests(); } const app = new Application(this.defaultOptions);
if (!opts.web) { setupLaunchTests(); } await app!.start(opts.web ? false : undefined);
this.app = app;
});
after(async function () {
await this.app.stop();
});
if (!opts.web) { setupDataLossTests(); }
if (!opts.web) { setupDataPreferencesTests(); }
setupDataSearchTests();
setupDataLanguagesTests();
setupDataEditorTests();
setupDataStatusbarTests(!!opts.web);
if (!opts.web) { setupDataExtensionTests(); }
if (!opts.web) { setupDataMultirootTests(); }
if (!opts.web) { setupDataLocalizationTests(); }
if (!opts.web) { setupLaunchTests(); }
});
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册