debt - improve emmet integration tests

- properly close all editors
- disable minimap to prevent spammy output
This commit is contained in:
Benjamin Pasero 2021-03-29 08:31:14 +02:00 committed by Johannes Rieken
parent babbec1a0b
commit 7f36af1c92
No known key found for this signature in database
GPG key ID: 96634B5AF12F8798
6 changed files with 4 additions and 5 deletions

View file

@ -46,7 +46,7 @@ suite('Tests for Expand Abbreviations (HTML)', () => {
const oldValueForInlcudeLanguages = workspace.getConfiguration('emmet').inspect('includeLanguages');
teardown(() => {
// close all editors
return closeAllEditors;
return closeAllEditors();
});
test('Expand snippets (HTML)', () => {

View file

@ -14,7 +14,7 @@ const completionProvider = new DefaultCompletionItemProvider();
suite('Tests for completion in CSS embedded in HTML', () => {
teardown(() => {
// close all editors
return closeAllEditors;
return closeAllEditors();
});
test('style attribute & attribute value in html', async () => {

View file

@ -16,7 +16,7 @@ import { mergeLines } from '../mergeLines';
suite('Tests for Emmet actions on html tags', () => {
teardown(() => {
// close all editors
return closeAllEditors;
return closeAllEditors();
});
const contents = `

View file

@ -1 +0,0 @@
DO NOT DELETE, USED BY INTEGRATION TESTS

View file

@ -83,7 +83,7 @@ after_suite
"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $ROOT/extensions/typescript-language-features/test-workspace --extensionDevelopmentPath=$ROOT/extensions/typescript-language-features --extensionTestsPath=$ROOT/extensions/typescript-language-features/out/test/unit $ALL_PLATFORMS_API_TESTS_EXTRA_ARGS
after_suite
"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $ROOT/extensions/emmet/out/test/test-fixtures --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test $ALL_PLATFORMS_API_TESTS_EXTRA_ARGS
"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $ROOT/extensions/emmet/test-workspace --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test $ALL_PLATFORMS_API_TESTS_EXTRA_ARGS
after_suite
"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $(mktemp -d 2>/dev/null) --enable-proposed-api=vscode.git --extensionDevelopmentPath=$ROOT/extensions/git --extensionTestsPath=$ROOT/extensions/git/out/test $ALL_PLATFORMS_API_TESTS_EXTRA_ARGS