Skip to content

Commit

Permalink
Clean up simple test IG (#73)
Browse files Browse the repository at this point in the history
* Clean up simple test IG

* Add some contents back per Joshua
  • Loading branch information
holly-smile authored Sep 7, 2024
1 parent dec07df commit 6d5e2a2
Show file tree
Hide file tree
Showing 44 changed files with 16 additions and 1,425 deletions.
2 changes: 1 addition & 1 deletion .vscode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const { defineConfig } = require('@vscode/test-cli');

module.exports = defineConfig({
label: 'Tests (Empty Folder)',
files: './dist/test/suite/runTests.js',
files: './dist/test/runTests.js',
launchArgs: ['tests/empty', '--new-window', '--disable-extensions'],
});
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"args": [
"${workspaceFolder}/tests/empty",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/dist/test/suite/index",
"--extensionTestsPath=${workspaceFolder}/dist/test/index",
"--disable-extensions",
"--new-window"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run clean && npm run compile && cp -r src/test/suite/resources dist/test/suite/resources",
"pretest": "npm run clean && npm run compile && cp -r src/test/resources dist/test/resources",
"clean": "rm -rf ./dist",
"clean-all": "npm run clean && rm -rf ./jars",
"test": "c8 --check-coverage --lines 80 --functions 80 --branches 80 vscode-test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,23 @@ import * as assert from 'assert';
import path from 'path';
import { ExtensionContext, extensions, window, workspace } from 'vscode';
import { URI } from 'vscode-uri';
import { buildParameters } from '../../buildParameters';
import { ConnectionManager } from '../../connectionManager';
import { buildParameters } from '../buildParameters';
import { ConnectionManager } from '../connectionManager';

const libraryUrl = path.resolve(__dirname, '../suite/resources/simple-test-ig/input/cql');
const libraryUrl = path.resolve(__dirname, './resources/simple-test-ig/input/cql');
const terminologyUrl = path.resolve(
__dirname,
'../suite/resources/simple-test-ig/input/vocabulary/valueset',
);
const modelUrl = path.resolve(
__dirname,
'../suite/resources/simple-test-ig/input/tests/Test/simple-test',
'./resources/simple-test-ig/input/vocabulary/valueset',
);
const modelUrl = path.resolve(__dirname, './resources/simple-test-ig/input/tests/Test/simple-test');
const remoteUrl = 'http://localhost:8000';
async function showSpecificFile(filePath: string) {
const document = await workspace.openTextDocument(filePath);
await window.showTextDocument(document);
}

suite('buildParameters - Public API Testing', () => {
const testWorkspacePath = path.resolve(__dirname, '../suite/resources/simple-test-ig');
const testWorkspacePath = path.resolve(__dirname, './resources/simple-test-ig');
const testFilePath = path.join(testWorkspacePath, 'input/cql/Test.cql');
let connectionManager = ConnectionManager.getManager();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as assert from 'assert';
import * as vscode from 'vscode';
import { ConnectionManager, Context } from '../../connectionManager';
import { ConnectionManager, Context } from '../connectionManager';

suite('Connection Manager Test', () => {
test('Connection Manager -- should be present', async function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { commands, Uri, window } from 'vscode';
import { existsSync } from 'fs';
import { createFileSync, removeSync } from 'fs-extra';
import { join } from 'path';
import { Commands } from '../../commands';
import { executeCQL } from '../../executeCql';
import { Commands } from '../commands';
import { executeCQL } from '../executeCql';

const OUT_FILE_PATH = join(__dirname, 'out.txt');
const TERMINOLOGY_FILE_PATH = join(__dirname, 'terminology.txt');
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import path from 'path';
import * as sinon from 'sinon';
import { window } from 'vscode';
import { URI } from 'vscode-uri';
import * as buildParametersModule from '../../buildParameters';
import * as executeCQLModule from '../../executeCql';
import { normalizeCqlExecution } from '../../normalizeCqlExecution';
import * as buildParametersModule from '../buildParameters';
import * as executeCQLModule from '../executeCql';
import { normalizeCqlExecution } from '../normalizeCqlExecution';

suite('normalizeCqlExecution tests', () => {
let stubShowErrorMessage: sinon.SinonStub;
let stubShowInformationMessage: sinon.SinonStub;
let stubBuildParameters: sinon.SinonStub;
let stubExecuteCQL: sinon.SinonStub;
let stubActiveTextEditor: sinon.SinonStub;
const testWorkspacePath = path.resolve(__dirname, '../suite/resources/simple-test-ig');
const testWorkspacePath = path.resolve(__dirname, '../resources/simple-test-ig');
const testFilePath = path.join(testWorkspacePath, 'input/cql/Test.cql');
const testFileUri = URI.file(testFilePath);

Expand Down
File renamed without changes.
File renamed without changes.
77 changes: 0 additions & 77 deletions src/test/suite/resources/KALM.postman_collection.json

This file was deleted.

32 changes: 0 additions & 32 deletions src/test/suite/resources/simple-test-ig/_refresh.sh

This file was deleted.

51 changes: 0 additions & 51 deletions src/test/suite/resources/simple-test-ig/_updateCQFTooling.sh

This file was deleted.

This file was deleted.

Loading

0 comments on commit 6d5e2a2

Please sign in to comment.