Skip to content

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

Closed
nigma456 wants to merge 5 commits intomainfrom
wip/nigma456/configtest
Closed

Correct the usage of getConfiguration('autolispext') by modify the extensionDevelopmentPath#141
nigma456 wants to merge 5 commits intomainfrom
wip/nigma456/configtest

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
@nigma456 nigma456 requested review from LanDong-adsk and Sen-real May 7, 2021 01:34
// 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
Contributor

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

"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.

// 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.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2025
@qiuradsk qiuradsk deleted the wip/nigma456/configtest branch November 12, 2025 06:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants