Microcks in VS Code — early build is testable, and I'd like adopters to break it #2285
Replies: 3 comments
|
Hi everyone! 👋 To add a bit more context to this discussion, we recently wrapped up an awesome LFX Mentorship project where we built a Microcks VS Code Extension. Huge shoutout to Destiny for a fantastic job on the implementation and testing! 🚀 While the code is ready, Maintainers and the team want to make sure we are building something that truly benefits our users. Before we officially set up the repository under the Microcks organization and publish the extension to the VS Code Marketplace, we want to gauge community traction and the need for this tool. Why a VS Code Extension? For example: Imagine you are working on an OpenAPI or AsyncAPI specification. With this extension, you could potentially interact with your Microcks server directly from your editor, quickly discovering existing mocks, pushing new artifacts for testing, or validating your local API contracts without ever leaving VS Code or the IDE. We want to hear from you! Does this fit into your daily workflow? Will it make your API development lifecycle smoother? Tagging some of our active community members and adopters to get your thoughts: @Basuchi @celidrissi @gozen59 @dataGriff @vleon1a @ludovic-pourrat. We'd love to hear your insights! |
📊 Community Poll: Do we need this VS Code Extension?To help us gauge interest, please react to this comment and drop a quick reply below: 👍 React with +1 if you think this extension is needed and would make your development workflow easier. 👎 React with -1 if you don't feel this would be useful to you right now. Every piece of feedback helps us prioritize our efforts. Thank you! 🙏 |
Uh oh!
There was an error while loading. Please reload this page.
Contract drift rarely gets caught by the person who caused it. It gets caught in CI, because
running a Microcks contract test locally means standing up a server, wiring Keycloak credentials and
importing the spec first — too much setup to pay for one test.
microcks test --dry-runremoved that cost from the CLI. This extension moves it, and the rest ofMicrocks, into the editor. It's at
0.1.0and installable as a VSIX. It is deliberately not on theMarketplace yet — I'd rather it meet your Microcks setups first.
What's in it
step-level reason).
on disk, Start Local Server, or Sign In to Remote Server with browser SSO.
the mock response against your real service.
It's CLI-first: everything goes through
microcks-cliJSON output, so there's no second Microckscontrol plane in the editor and the extension never reads or stores your credentials.
Try it in five minutes
Needs VS Code 1.85+, Docker or Podman, and a CLI built from
main— the editor commands ship in1.0.3, so1.0.2gets rejected by the capability gate:Reload the window if VS Code was already open, then run Microcks: Set CLI Path and point it at
build/dist/microcks.Now watch a test fail for a real reason.
npm run example:demo-api:driftstarts a server thatreturns
priceas a string, drifting from its own contract. Openexamples/demo-api/ecommerce-api-openapi.yml, run Microcks: Run Dry-Run for API File withservice
E-Commerce Platform API:2.0.0, endpointhttp://localhost:3001, runnerOPEN_API_SCHEMA, operationGET /products. It fails; expand the Tests tree to the step to seewhy. Restart the server conforming and re-run: green. No Microcks server, no Keycloak, no import.
Rough edges: no Marketplace or Open VSX release yet; the managed CLI installer pulls the latest
stable CLI (
1.0.2) and fails the gate, so build your own for now; mock actions are thin (invoke,copy URL, Inspector); no Explorer or editor-title integration; screenshots still pending.
What I'd like to know
enabled in dev?
Rough edges are the most useful thing you can send me. Reply here, or open an issue if it's a
concrete bug.
microcks-vscode ·
microcks-cli ·
architecture notes
All reactions