Add test cases for lisp extension Autocompletion feature
Abstractions
Change the fs.readFile to fs.readFileSync so that the variables [internalLispFuncs,internalDclKeys etc] can got value before the mocha test.
This may impact a little bit performance of launch extension for end client users but this delay will be very tiny.
Cover getCmdAndVarsCompletionCandidates() and getLispAndDclCompletions()
Does not cover getMatchingWord() since it is related to vscode editor and it will return error when running into the method document.getWordRangeAtPosition(position) after I created and opened a lisp file to test.
Need to run on Mac os to verify since there are difference between Mac and Win32 OS.
After the submission the code coverage for autocompletion will be 53%
Objective
Add test cases for lisp extension Autocompletion feature
Abstractions
Change the fs.readFile to fs.readFileSync so that the variables [internalLispFuncs,internalDclKeys etc] can got value before the mocha test. This may impact a little bit performance of launch extension for end client users but this delay will be very tiny.
Cover getCmdAndVarsCompletionCandidates() and getLispAndDclCompletions()
Does not cover getMatchingWord() since it is related to vscode editor and it will return error when running into the method document.getWordRangeAtPosition(position) after I created and opened a lisp file to test.
Need to run on Mac os to verify since there are difference between Mac and Win32 OS.
After the submission the code coverage for autocompletion will be 53%
Tests performed
Passed Local and Github CI
Screen shot