splunk / vscode-extension-splunk

Visual Studio Code Extension for Splunk
MIT License
86 stars 25 forks source link

Add functional and acceptance test harnesses and spl2 tests and bugfixes #102

Closed fantavlik closed 1 year ago

fantavlik commented 1 year ago

Added testing

Most of the Splunk Extension code depends on the vscode package which requires a running instance of vscode to work. This PR adds testing harnesses using @vscode/test-electron using these resources as guidance:

Functional tests: these import the code directly so that individual functions can be tested similar to unit tests but with a running instance of vscode Acceptance tests: these actually install the packaged .vsix version of the Extension into running VSCode instance in the testing environment. Unfortunately I wasn't able to get a meaningful test working yet with this but it was quite a lot of work just getting the harness working across platforms so I thought it would still be useful to work off of moving forward.

Bugfixes

Bump LSP