microsoft / kiota

OpenAPI based HTTP Client code generator
https://aka.ms/kiota/docs
MIT License
2.95k stars 207 forks source link

Add automated tests to the VSCode extension #5442

Open calebkiage opened 1 month ago

calebkiage commented 1 month ago

Problem

The Visual Studio extension currently lacks automated tests, which is risky in the following ways:

Proposal

I propose adding automated tests for the extension to improve its reliability and maintainability. This will reduce the need for manual testing and help ensure new changes don’t introduce regressions.

To start, we could follow the official Visual Studio Code testing documentation, which outlines how to set up and run tests for extensions.

Benefits

Next Steps

  1. Set up a basic test framework following the Visual Studio Code extension testing guide.
  2. Add unit tests for critical parts of the extension.
  3. Expand coverage over time to include integration tests and more complex scenarios.

Feedback

I’d love to hear the team's thoughts on this proposal and any suggestions for specific areas we should focus on for testing first. Feel free to share any relevant experiences or resources that could help improve this plan.

maisarissi commented 2 days ago

@thewahome @petrhollayms would you mind sharing what is still pending on this PR and whether there is any work still needed? Otherwise, we should ship it. Thanks

thewahome commented 2 days ago

It was pending review of the work that @fey101 was doing which it got today. So right now it should be shipping 😀

fey101 commented 1 day ago

We would either need someone with project repo rights to override request for changes by @baywet since they have been succintly addressed and tested and Vincent is OOO, or wait for him to resume work for the PR to be merged.