Skip to content

Commit 4b66a27

Browse files
committed
fixed tests
1 parent 9d25823 commit 4b66a27

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
with:
4949
node-version: 12.x
5050
- run: npm install
51-
- run: npm run compile
5251
- name: lint
5352
if: runner.os == 'Linux'
5453
run: npm run lint
54+
- run: npm run compile
5555
- name: npm test
5656
uses: GabrielBB/[email protected]
5757
with:

src/test/runTest.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ async function main() {
1111
// The path to the extension test script
1212
// Passed to --extensionTestsPath
1313
const extensionTestsPath = path.resolve(__dirname, "./suite/index");
14+
const codeWorkspacePath = path.resolve(extensionDevelopmentPath, "./src/test/workspace/test.code-workspace");
15+
console.log("codeWorkspacePath", codeWorkspacePath);
1416

15-
const launchArgs = ["--enable-proposed-api", "daimor.vscode-objectscript"];
17+
const launchArgs = [
18+
"-n",
19+
"--disable-extensions",
20+
"--enable-proposed-api",
21+
"daimor.vscode-objectscript",
22+
codeWorkspacePath,
23+
];
1624

1725
// Download VS Code, unzip it and run the integration test
1826
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs });

src/test/suite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export function run(): Promise<void> {
66
// Create the mocha test
77
const mocha = new Mocha({
88
ui: "tdd",
9+
color: true,
910
});
10-
mocha.useColors(true);
1111

1212
const testsRoot = path.resolve(__dirname, "..");
1313

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"name": "isfs",
8+
"uri": "isfs://IRIS/"
9+
}
10+
],
11+
"settings": {
12+
"intersystems.servers": {
13+
"IRIS": {
14+
"webServer": {
15+
"scheme": "http",
16+
"host": "127.0.0.1",
17+
"port": 52773
18+
},
19+
"description": "Connection to default local InterSystems IRIS™ installation. Delete if unwanted."
20+
},
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)