openfga / vscode-ext

An OpenFGA extension for VS Code
https://openfga.dev
Apache License 2.0
14 stars 4 forks source link

[Epic] Integrate with the CLI for running tests #299

Open Siddhant-K-code opened 2 months ago

Siddhant-K-code commented 2 months ago

Description

Integrate CLI for running tests and suggest autofixes for failing tests using npm script (added docs too)

References

fixes #266

Review Checklist

ewanharris commented 1 month ago

👋🏻 Thanks for the PR @Siddhant-K-code! Apologies for this but I think our issue might not have been clear enough on what we're looking to achieve. I'll work to update the GH issue to reflect this better.

The FGA CLI supports running tests defined in the store file, and that's what we'd like to expose to FGA developers in some manner. I think a first pass would be to have this ran via a command in the command palette and then later some deeper integration with the VS Code testing panel and inline items (I think there's a barrier to this in that the CLI doesn't support running specific tests or a "simple" parseable output)