Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the usage of getConfiguration('autolispext') by modify the extensionDevelopmentPath #141

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nigma456
Copy link
Contributor

@nigma456 nigma456 commented May 6, 2021

Objective

Update to use the correct extensionDevelopmentPath and remove mock method

Abstractions

In our lisp extension test we have wrongly set the extensionDevelopmentPath in runTest.ts so that it will fail to read the configuration('autolispext') and we have to use a workround of mock method for formatter.test.ts

In this subimission I corrected the extensionDevelopmentPath and removed the mock method

Tests performed

Passed local and CI test

Screen shot

@nigma456 nigma456 changed the title Test the configuration update Correct the usage of getConfiguration('autolispext') by modify the extensionDevelopmentPath May 7, 2021
// CloseParenthesisStyle: 'New line with outer indentation'
// LongListFormatStyle: 'Fill to margin'
// Need to remove the \r to do the format output compare
after(async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A suite doesn't have after / before.
It should use setup, teardown, suiteSetup, suiteTeardown.
https://www.w3resource.com/mocha/interfaces.php

@@ -22,6 +22,7 @@
"preLaunchTask": "buildproject",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was handled in PR #160 and quite a bit more. Make sure you update to the latest before these test additions get added.

@@ -6,7 +6,8 @@ async function main() {
try {
// The folder containing the Extension Manifest package.json
// Passed to `--extensionDevelopmentPath`
const extensionDevelopmentPath = path.resolve(__dirname, '../../../../');
// The __dirname is \AutoLispExt\out\test
const extensionDevelopmentPath = path.resolve(__dirname, '../../');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was handled in PR #160 and quite a bit more. Make sure you update to the latest before these test additions get added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants