Skip to content

Feat/improve test error messages#414

Open
namanyadav-08 wants to merge 2 commits into
microcks:masterfrom
namanyadav-08:feat/improve-test-error-messages
Open

Feat/improve test error messages#414
namanyadav-08 wants to merge 2 commits into
microcks:masterfrom
namanyadav-08:feat/improve-test-error-messages

Conversation

@namanyadav-08
Copy link
Copy Markdown

Fixes #412

What does this PR do?

The test command was printing the same generic error message
for three different missing arguments, giving users no indication
of which specific argument was missing or what format it expects.

Before this fix

test command require apiName:apiVersion args
test command require apiName:apiVersion args
test command require apiName:apiVersion args

After this fix

missing required argument: apiName:apiVersion (e.g. 'my-api:1.0')
missing required argument: (e.g. 'http://localhost:8080/api')
missing required argument: (e.g. 'HTTP', 'POSTMAN', 'OPEN_API_SCHEMA')

Why this matters

Better error messages = faster debugging. Users immediately know
exactly which argument is missing and what format is expected,
without having to read the docs.

How to verify

Run the test command with missing arguments:

microcks test
microcks test my-api:1.0
microcks test my-api:1.0 http://localhost:8080

Each should now show a specific, helpful error message.

Signed-off-by: namanyadav-08 <namanyadav8125@gmail.com>
@namanyadav-08 namanyadav-08 force-pushed the feat/improve-test-error-messages branch from 7888cda to 519e872 Compare May 19, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: test command shows same generic error for all missing arguments

1 participant