bazelbuild / vscode-bazel

Bazel support for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel
Apache License 2.0
232 stars 76 forks source link

Set Up Testing (unit tests and integration tests) #310

Closed hypdeb closed 5 months ago

hypdeb commented 7 months ago

I'm looking into contributing to this project, but it seems there is no testing set up.

It seems there's some support for integration tests specifically for VS Code extensions: https://code.visualstudio.com/api/working-with-extensions/testing-extension.

I know almost nothing about NodeJS and such, but I'm guessing the standard approach they use there for unit testing should work too for VS Code extensions: https://nodejs.org/api/test.html ?

cameron-martin commented 5 months ago

Duplicate of https://github.com/bazelbuild/vscode-bazel/issues/32.

But yeah tests would be good. I don't have any experience of this myself though!