-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Epic] Integrate with the CLI for running tests #299
base: main
Are you sure you want to change the base?
[Epic] Integrate with the CLI for running tests #299
Conversation
* **package.json** - Add a new script command "test-inline" to run tests and display output inline - Update the "test" script to include the new command * **client/src/test/diagnostics.test.ts** - Implement autofix suggestions for failing tests - Add comments to explain the autofix logic * **client/src/test/extension.test.ts** - Implement autofix suggestions for failing tests - Add comments to explain the autofix logic * **README.md** - Add instructions on running tests through the CLI and viewing output inline - Update the usage section to include the new feature
👋🏻 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) |
Description
Integrate CLI for running tests and suggest autofixes for failing tests using npm script (added docs too)
References
fixes #266
Review Checklist
main